I need help with the following problem:
(1) The positive difference between a two digit integer and the integer created when the two digits are reversed is $27$. What is the positive difference of these two digits?
(2) The positive difference between a three digit integer and the integer created when the three digits are reversed in order is $297$. What is the positive difference of the hundreds digit and the units digit?
(3) The positive difference between a $4$ digit integer and the integer created when the thousands digit and the units digit are exchanged is $5994$. What is the positive difference of the thousands digit and the units digit? (You should begin to see a pattern here!)
My Attempt I tried setting variables equal to the tens place, units place, etc. But I keep on getting a Diophantine equation. Is that supposed to happen?