Let x = pounds of raisins
Let y = pounds of walnuts
The first linear equation for the system is representing COST
[tex]\text{ \$4x + \$8y = \$24}[/tex]The second linear equation for the system is representing WEIGHT
[tex]x\text{ + y = 5}[/tex]Hence the two-equation for each constraint are
[tex]\begin{gathered} \text{\$4x + \$8y = \$24} \\ x\text{ + y = 5} \\ \end{gathered}[/tex]