This question involves systems of equations. You can use matrices on a graphing calculator or solve by elimination. Set this up as x+y=1212 and x-y=518. If you solve on a graphing calculator, click 2nd matrix then edit. Change the matrix to a two by three and input on the first line horizontally 1, 1, 1212 and on the second line 1, -1, 518. Then hit the quit button and go to the home screen. Click 2nd matrix again and hit rref and quit again and click on the name of the matrix. If you solve by elimination multiply the first one by -1 so your ys can cancel and then find x and plug in. So your two numbers are 865 and 347.
-Trust me, learn how to do these on your calculator, it will minus the tricky solving of systems.