It is 25 BTC bill and 2 BTC kept by waiter total 27 BTC paid by three

25+2=27