Answer:
Matt bought 7 packages of hot dogs and 5 packages of hamburger.
Step-by-step explanation:
We are given the following in the question
Let x represent the number of packages of hot dogs.
Cost of one packet of hot dog = $2.75
Let y represent the number of packages of hamburgers
Cost of one packet of hamburgers = $3.20
Then, we can write the following equations:
[tex]x + y = 12\\2.75x + 3.2y = 35.25[/tex]
Solving the two equations,
[tex]2.75x + 2.75y = 33\\2.75x + 3.2y = 35.25\\\Rightarrow 0.45y = 2.25\\y = 5\\x = 7[/tex]
Thus, Matt bought 7 packages of hot dogs and 5 packages of hamburger.
The solution is viable.
Constraints to the system of equation:
[tex]x,y \geq 0 \\x + y = 12\\2.75x + 3.2y = 35.25[/tex]