A two-variable cost equation adds the costs of two kinds of items. If you know the total and one item count, substitute them into the equation and use a Desmos regression to find the other count. Each coefficient is a price per item, so the dollars spent on the remaining items aren't their count.
Hints
- Hint 1
A coefficient is the number multiplying a letter. The terms and are dollar amounts. Which given values replace the total and the muffin count ?
- Hint 2
After substitution, is the only unknown. A Desmos regression uses in place of to find the value that makes both sides match. Make sure you report a number of drinks, not a dollar amount.
Step-by-step
Substitute, then solve in Desmos
Step 1Turn Sam's purchase into an equation
The coefficient is the price of one muffin, and is the price of one drink. So and are costs. Sam spent $50 and bought muffins, so replace with and with :
The term measures dollars, not drinks.
- Step 2
Find the number of drinks
Type in Desmos. The regression uses instead of to find the value of that makes the costs add to . Desmos shows under PARAMETERS. Since counts drinks, Sam bought drinks. Grid in 6.