The variables are the number of items sold for sundaes and banana splits.
Let's say the number of sundaes = s
and the number of banana splits = b
We know the number of sundaes sold is 8 more than the number of banana splits, so s= b+8
We also know that the total amount earned in the day = $156 and sundaes are $2 and banana splits $3
To write the algebraic equation to represent the number of items sold, multiply the cost by the number of items and set it equal to the total earned.
$2(s) + $3(b) = $156
Since we know s = b + 8, the second part of the equation can be substituted for s to solve for b
$2(b + 8) + $3(b) = $156
Distribute following the order of operations
$2b + $16 + $3b = $156
Simplify
$5b + $16 = $156
Subtract $16 from both sides to get all the variables on one side of the equation
$5b + $16 - $16 = $156 - $16
$5b = $140
Divide both sides of the equation by $5 to isolate the variable
$5b\$5 = $140/$5
This gives us the value of b = 28
Now we can solve for s by putting the value of b into our equation for the number of s
s = b + 8
s = 28 + 8
s = 36
Now that we know s = 36 and b = 28 we can use the values to check our answer
$2(s) + $3(b) = $156
$2(36) = $3(28) = $156
$72 + $84 = $156
$156 = $156
Hope this helps!