John and Cindy were each given X dollars in advance for each day they were expected to perform at a community festival. John eventually performed on all 20 days of the festival, while Cindy performed on 5 fewer days than John performed. If Cindy 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? Answers
A) 8Y  B) 7Y  C) 10Y  D) 12Y  E) 5Y
7Yoth of them were given X $ each   Cindy to adjust Y $ in advance to John   So Cindy now has (X-Y)$ and John has (X+Y) $ such that their daily rate becomes same   So Rate of CIndy= Rate of John   Also , Cindy works for 15 days and John works for full 20 days   (X-Y) / 15 = (X+Y) / 20   Solving 20x-20y=15x+15y =&gt;5x=35y =&gt; x=35/5= 
<gadget id="calculator">35/5</gadget>
<output>7</output>
7Y   Answer : 7Y
<result>B</result>
John and Cindy were each given X dollars in advance for each day they were expected to perform at a community festival. John eventually performed on all 20 days of the festival, while Cindy performed on 5 fewer days than John performed. If Cindy 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?