
where w is the number of gummy worms and b is the number of gummy bears
Here, we want to set up equations
Let the number of pounds of gummy worms be w and the number of pounds of gummy bears be b
From the question, we have that the sum of all is 30
Thus, we have it that;

Now, for w pounds of gummy worms at a cost of $3 per pound, we have the cost here as 3 * w = $3w
Secondly, for b pounds of gummy bears at a cost of $1.5 per pound, we have the cost as 1.5 * b = $1.5b
The cost of both gives;

Thus, we have the system of equations as follows;
