H = hamburgers
C = cheeseburgers
C + H = 505 I
C - H = 55 II
in fact you have a system and must choose a method to solve it. The best method is "To eliminate one of variable" in this case you can eliminate H by adding two equation I and II
C + H + C - H = 560
2C = 560
C = 280
by plug in C = 280 TO equation # I you have:
280 + H = 505
-280 -280
H = 225
I hope it is useful and make sense