Answer:
![t(g)=-4g+20](https://tex.z-dn.net/?f=t%28g%29%3D-4g%2B20)
Step-by-step explanation:
Let g be the number of games James plays and t be the number of tokens James has.
We will write our function's formula in slope-intercept form of equation.
, where,
m = Slope of line,
b = y-intercept.
We have been given that initially James has 20 tokens. This means that before playing the games James has 20 tokens or at g equals 0 t equals 20. So our y-intercept will be 20.
We are also told that after playing the game 3 times, he has 8 tokens remaining.
Let us find the slope of line using points (3,8) and (0,20).
, where,
m = Slope of line,
= Difference between two y-coordinates,
= Difference between x-coordinates of same two y-coordinates.
Upon substituting coordinates of our given points we will get,
![m=\frac{8-20}{3-0}](https://tex.z-dn.net/?f=m%3D%5Cfrac%7B8-20%7D%7B3-0%7D)
![m=\frac{-12}{3}](https://tex.z-dn.net/?f=m%3D%5Cfrac%7B-12%7D%7B3%7D)
![m=-4](https://tex.z-dn.net/?f=m%3D-4)
So the slope of our line will be -4.
We can see that number of remaining tokens are dependent on number games James plays, this mean that t is a function of g.
Upon substituting our values in slope-intercept form of equation we will get,
, where, t(g) represents number of tokens James has left after playing g games.
Therefore, our required function will be
.