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 30 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 choice from the following answers:
A) 11Y  B) 15Y  C) 13Y  D) 10Y  E) 5Y
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   11Ylso , David works for 25 days and John works for full 30 days   (X-Y) / 25 = (X+Y) / 30   Solving 30x-30y=25x+25y =&gt;5x=55y =&gt; x=55/5= 
<gadget id="calculator">55/5</gadget>
<output>11</output>
11Y   11Ynswer : 11Y
<result>A</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 30 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?