A client buys 72 turkeys. On the receipt, 2 digits are missing, the first and the last. So, the total price is $\${-}67.9{-}$. Find a way to make the price of each turkey round at the second digit without trial-and-error method.
So, the answer is obviously $\$5.11$/turkey, so $\$367.92$ total. I found that with with 2-3 trial-and-error.
I bypassed his problem by using python and made a script that tries every combination and assures it is divisible by 0.01.
Please help me find a mathematical way of solving this problem.
You need the divisibility rules for $8,9$ because a number is divisible by $72$ only if it is divisible by $8$ and $9$ as well.
According to that the rule, the sum of the digits must be divisible by $9$.
$$x+6+7+y = 22+x+y$$
In order to be divisible by 9, that sum must either be 27 or 36. The blanks must sum to $5$ or $14$.
It must also be divisible by $8$ so the last digit must be $2$. That means the first digit has to be $3$, because it would be impossible to make a sum of $14$.
Hence, the answer is x=3 and y=2