Another way of approaching the problem is by setting up equations.
Let b= # of chocolate bars, and c=# of gummy candy
Because the total number of bars and candies sold was 275,
We can set up the equation b+c=275
Next, we have the individual price for the chocolate bars, the individual price for the gummies, and the total price. We can set up another equation using these three.
$1.25(# of chocolate bars)+$0.75(# of gummy bears)=total price,
Therefore,
1.25b+0.75c=272.25
Now we have our two equations,
b+c=275
1.25b+0.75c=272.25
You can either use substitution or elimination to solve for the two equations,
Which leaves us with our final answers:
b=132,c=143

.