After paying his bill at a restaurant, Derrick realized that the waiter had switched the number in the tens place with the number in the hundredths place. If he paid $24.31, what should he have paid?


step by step please