When 8 is added to the number that is produced by doubling the number x, the result is equal to 8 times the number that is 5 less than x. What is x equal to?