Question 1151546
<pre>
Let D = the number of hot dogs he can purchase
Let S = the number of sodas he can purchase

{{{matrix(3,9,
(matrix(3,1,cost,of,ticket)),
""+"", 
(matrix(3,1,cost,of,matrix(1,2,hot,dogs) )),
""+"",
(matrix(3,1,cost, of, sodas)),
"",
""<="", 
"",
(matrix(5,1,amount, of, money, he, has)),
"","","","","","","","","",


"$12",
""+"",
"$2"*D,
""+"",
"$4"*S,
"",
""<="",
"",
"$40"

)}}}

Subtract $12 from both sides:

{{{matrix(1,7,
"$2"*D,
""+"",
"$4"*S,
"",
""<="",
"",
"$28")}}}

Divide every term by $2

{{{matrix(1,7,
D,
""+"",
2S,
"",
""<="",
"",
"$14")}}}

Edwin</pre>