Answer :
picture a number line. the starting point is 0. go forward 5 which brings u to 5 on the number line. then since he lost 7 go back 7 which brings u to -2. now to get back to 0 you need to go forward 2. which means that he must gain 2 in order to get back to the starting point.