Hi Katie,
So we have a two-digit number, x. Thus x = 10a + b, for some integers a and b. Note that we can write any two digit number this way (i.e. 36 = 10(3) + 6).
We are given that the sum of the digits of x is 12. This means that a + b = 12.
When we reverse the digits, we have a new number, y, where y = 10b + a. (Note the switch). We are told that
y = x - 18. To find x, note that x = y + 18.
We have the system of equations a + b = 12; x = y + 18. We want to use the substitution method. I'll solve for a;
a = 12 - b.
From x = y + 18, we have 10a + b = 10b + a + 18.
Now substitute a with 12 - b: 10(12 - b) + b = 10b + 12 - b + 18
Simplify: 120 - 9b = 9b +30
Collect like terms: 18b = -90
Divide both sides by 18: b = 5
Now that we know what b is, we can find a: a = 12 - b = 12 - 5 = 7.
Since x = 10a + b, x = 10(7) + 5 = 75.
To double check, note that this means y = 57, and 75 - 57 = 18.
I think the key to this type of problem is the observation that two-digit numbers can be written in the form 10a + b, for some integers a and b. Similarly, three-digit numbers are of the form 100a + 10b + c, and so on.
Try working through this problem again, but solve and substitute with b instead of a!
Let me know if I need to clarify anything.