They two shall have the same amount of $30 after 5 days
[Consider "d" is number of days, "y" is total amount]
For Youssef:
1) Equation created: y = 40 - 2d ____ eq(1)
For Tiernan:
Unit rate: (change in amount)/(change in day) = (34 -22)/(6-3) = $4
2) Equation created:
For them to have same amount, solve simultaneously:
Amount after 5 days: 4(5) + 10 = $30