John and David were each given X dollars in advance for each day they were expected to perform at a community festival. John eventually performed on all 40 days of the festival, while David performed on 5 fewer days than John performed. If David gives John y dollars of her advance payment so that they would have each received the same daily rate, what was John paid in advance, in terms of Y?	Choose the correct answer:  A) 10Y  B) 12Y  C) 15Y  D) 18Y  E) 24Y
Both of them were given X $ each   David to adjust Y $ in advance to John   So David now has (X-Y)$ and John has (X+Y) $ such that their daily rate becomes same   So Rate of David= Rate of John   Also , David works for 35 days and John works for full 40 days   (X-Y) / 35 = (X+Y) / 40   Solving 40x-40y=35x+35y =&gt;5x=75y =&gt; x=75/5= 
<gadget id="calculator">75/5</gadget>
<output>15</output>
15Y   Answer : 15Y
<result>C</result>
John and David were each given X dollars in advance for each day they were expected to perform at a community festival. John eventually performed on all 40 days of the festival, while David performed on 5 fewer days than John performed. If David gives John y dollars of her advance payment so that they would have each received the same daily rate, what was John paid in advance, in terms of Y?