Answer
The cost of one hamburger is $4
The cost of one hotdog is $2
Explanation
Let a represents hamburger, and
Let b represents hotdog.
Three hamburgers and 2 hotdogs cost $16 implies;
[tex]3a+2b=16---i[/tex]Also, 2 hamburgers and 3 hotdogs cost $14 implies;
[tex]2a+3b=14---ii[/tex]Compare the system of equations and solve using elimination method
[tex]\begin{gathered} 3a+2b=16---i\text{ x 3} \\ 2a+3b=14---ii\text{ x 2} \\ \Rightarrow9a+6b=48---iii \\ 4a+6b=28---iv \\ \end{gathered}[/tex]Substract (iv) from (iii)
[tex]\begin{gathered} 9a-4a+6b-6b=48-28 \\ 5a=20 \\ D\text{ivide both sides by 5} \\ \frac{5a}{5}=\frac{20}{5} \\ a=4 \end{gathered}[/tex]Since a represent hamburger, this implies the cost of one hamburger is $4
To get the cost of one hotdog, substitute a = 4 into (i)
[tex]\begin{gathered} \text{Recall (i);} \\ 3a+2b=16---i \\ \Rightarrow3(4)+2b=16 \\ 12+2b=16 \\ 2b=16-12 \\ 2b=4 \\ \text{Divide both sides by 2} \\ \frac{2b}{2}=\frac{4}{2} \\ b=2 \end{gathered}[/tex]Therefore, the cost of one hotdog is $2