Rs given by each friend -
24 * 3= 72
The shopkeeper keeps Rs. 70 & waiter keeps Rs. 2. So 70 + 2=72,

Which is equal to the Rs given by all the friends.