<u>Answer</u>:
40 cotton bags and 120 peanuts bags
Step-by-step explanation:
Let cotton candy bags be x and peanuts bag be y
x + y = 160 ........from Theory 1
4x + 2.5y = $460 ...............from Theory 2
<u>Making x the subject:</u>
x + y = 160
x = 160 - y ...........equation 1
4x + 2.5y = $460
4x = $460 - 2.5y
x = ($460 - 2.5y)/4 ..............equation 2
<u>Solving both equations simultaneously:</u>
160 - y = ($460 - 2.5y)/4
4(160 - y) = $460 - 2.5y
640 - 460 = - 2.5y + 4y
180 = 1.5y
y = 180/1.5
y = 120
<em>Therefore there are 120 peanuts bags</em>.
Then the number of cotton bags are: x + y = 160
: x + 120 = 160
: x = 40 cotton bags