Hello!
Let's write some important information contained in the exercise:
• hotdogs: $2.59 (,x,)
,
• hamburgers: $5.29 (,y,)
He needs 11 packages. Let's write it:
• x + y = 11
He spent a total of $39.29. We can write it as:
• 2.59x + 5.29y = 39.29
Now, let's solve these two equations as a linear system:
First, let's isolate x in equation A:
Now, we will replace where's x by 11-y in equation B:
As I called the hamburgers as 'y', we know that he bought 4 packages of hamburgers.