Add the total of the 3 things bought and subtract from what they gave the cashier:
20.34 + 24.08 + 5.08 = 49.50 total
50 - 49.50 = 0.50
The shopkeeper kept 0.50
5.1m questions
6.7m answers