Another way of approaching the problem is by setting up equations.
Let \(b = \text{ # of chocolate bars}\), and \(c = \text{# 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 ( \text{# of chocolate bars} ) + $0.75 ( \text{# of gummy bears} ) = \text{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:
\(\boxed{b = 132 , c = 143}\)
.