There are 97 lights which are functional and each is controlled by a separate On/Off switch. Two children A and B start playing with the switches. A starts by pressing every third switch till he reaches the end. B, thereafter, presses every fifth switch till he too reaches the end. If all switches were in Off position at the beggining, How many lights are switched On by the end of this operation?	Choose the correct option:
A) 29 B) 49 C) 39 D) 59 E) 69
Editing my solution:   Number of switches = 97   Number of switches turned on by A: 3, 6, ... 96 = 32   Number of switches turned on by B: 5, 10, ....95 = 19   Few switches are turned on by A and later turned off by B: LCM(3,5) = 15x = 15, 30,....90 = 6.   Subtract the above 6 switches from both A and B as they are turned off.   Number of switches that are turned on = (32 - 6) + (19 - 6)= 
<gadget id="calculator">(32 - 6) + (19 - 6)</gadget>
<output>39</output>
39   Answer: 39
<result>C</result>
There are 97 lights which are functional and each is controlled by a separate On/Off switch. Two children A and B start playing with the switches. A starts by pressing every third switch till he reaches the end. B, thereafter, presses every fifth switch till he too reaches the end. If all switches were in Off position at the beggining, How many lights are switched On by the end of this operation?