3 friend went to a coffee shop.
They ordered their coffee, had it and enjoyed their time.
Waiter came with a bill of \$30.
So they decided to pay \$10 each.
Waiter gave them \$5 in return as a discount.
Now they took \$1 each and gave \$2 as a tip to waiter.
That means coffee cost them \$9 per friend and that is 9x3=27 dollars.
And they gave \$2 to waiter which makes a total of 27+2=29 dollars.
But they initially gave a total of \$30.
Where did a dollar go?