Answer:
![t(g)=-4g+20](https://img.qammunity.org/2020/formulas/mathematics/high-school/rteupeaqulehc4bi7wpxzqe1u3c4zg1eac.png)
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=(8-20)/(3-0)](https://img.qammunity.org/2020/formulas/mathematics/high-school/rtc76dutul2dywigq9ix20b1u50axk5usv.png)
![m=(-12)/(3)](https://img.qammunity.org/2020/formulas/mathematics/high-school/2ruzwpupthqiyjsvltf2vo485l06cucfei.png)
![m=-4](https://img.qammunity.org/2020/formulas/mathematics/middle-school/yup0coyowvsq8zkhlmump3ck1gvu9yzhhk.png)
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
.