The bags of candy that was sold is 6
The bags of cookies that was sold is 10.
<h3>What are the linear equations that represent the question?</h3>
$8.50c + $4.50o = 79 equation 1
o - c = 6
o = 6 + c equation 2
Where:
<h3>How many bags of candy and cookies were sold?</h3>
Substitute for o in equation 1 using equation 2
$8.50c + $4.50(6 + c) = 79
$8.50c + 27 + 4.50c = 79
$8.50c + 4.50c = 79 - 27
$13c = 52
c = 52 / 13
c = 4
Substitute for c in equation 2
0 = 6 + 4 = 10
To learn more about linear functions, please check: brainly.com/question/26434260
#SPJ1