The dinner bill came to $24.29 before tax and tip. If the taxes were 6% and they decided to leave an 18% tip, what was the total cost of the dinner?