224k views
4 votes
Calvin has a gift card, which he uses to buy candy. After buying four total pieces of candy he has $28.00 left on the card, and then after buying 10 total pieces of candy he has $25 left on the is x variablewhat is the y variablewrite the linear equation to represent his spending in candy​?

User Darlin
by
7.5k points

1 Answer

3 votes

Final answer:

The linear equation representing Calvin's spending in candy is y = -0.5x + 30.

Step-by-step explanation:

To represent Calvin's spending on candy using a linear equation, we can use the slope-intercept form, y = mx + b, where y represents the amount of money left on the card, x represents the number of candy pieces Calvin has bought, m represents the rate at which Calvin's spending decreases, and b represents the initial amount of money on the card.

Based on the given information, we can determine the slope, m, by finding the change in y (change in money left on the card) divided by the change in x (change in the number of candy pieces): (28 - 25) / (4 - 10) = -0.5.

Next, we can substitute one of the given points (4, 28) into the equation and solve for b:

28 = (-0.5)(4) + b

28 = -2 + b

b = 30

So, the linear equation that represents Calvin's spending in candy is y = -0.5x + 30.

User RoMEoMusTDiE
by
8.2k points