First, let’s add all the items the customer purchased
$10.49 + $5.23 + $15.85 = $31.57
Okay, so now we know the total amount due is $31.57
Now, let’s add up how much money the customer paid with
$20 + $20 + $10 = $50
So we know the customer paid with $50 so to find out how much change is due, we subtract $31.57 from $50
$50 - $31.57 = $18.43
Therefore, the customer will receive $18.43 in change.
Hope this helps you
Happy Halloween
-AaronWiseIsBae