btw if you'd like a full answer the way i was taught....
x + 2 = 7 is the base problem, x being the variable. simply reverse the action (being + in this case, you would use -) and switch with the = sign and write it backwards (going right to left instead of left to right) so it becomes 7 - 2 = x...