Y = 12x - 40
the x variable represents the number of hours Sam works at the airport
the y value represents the amount in dollars that Sam has after paying Daniel
the 12 is the amount in dollars that Sam earns per hr
the 40 is the amount in dollars Sam owes Daniel
Assuming all of them had the same amount at the start
Via the generating function method, let

Then take the recurrence,

multiply everything by

and sum over all

:

Re-index the sums or add/remove terms as needed in order to be able to express them in terms of

:



So the recurrence relation is transformed to



For appropriate values of

, we can express the RHS in terms of geometric power series:

which tells us that
A). because the roots are shown. The roots of this quadratic function would be x=2, and x=-2
X liters of 10% + (30 - x) liters of 22% = 30 liters of 15%
<span>Plugging in the numbers </span>
<span>x(10) + (30 - x)22 = 30(15) </span>
<span>Distribute </span>
<span>10x + 660 - 22x = 450 </span>
<span>Combine like terms </span>
<span>-12x = -210 </span>
<span>Divide both sides by -12 </span>
<span>x = 17.5 </span>
<span>30 - x = 12.5 </span>
<span>17.5 liters of 10% + 12.5 liters of 22% = 30 liters of 15%
THE TRICK IS TO JUST USE ONLY ONE VARIABLE</span>