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? Select the correct option.
A) 29	B) 49	C) 39	D) 59	E) 69

Rationale: 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 ) = 15 x = 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 ) = 39 answer : c
Answer: C