We can deduce that the original amount on the gift card correspond to the value of A when x=0, that is no coffee consumed yet.
Then, we have to calculate the function that relates x with A and then calculate A(0).
We know that it is a linear relationship, so we will start by calculating the slope m as:
This means that the amount is reduced by 2.5 dollars per coffee.
We then can use one point fo the relationship, like (x,A)=(2,15) and, with the slope m=-2.5, write the slope-point equation form of the line:
Now, we can calculate the value of A when x=0:
The value of A(0) is the same as the y-intercept b=20.
Answer: the original amunt of money in the gift card was $20.