Translate the following sentence into an equation:
Five more than twice a number is the same as the difference between a number and 24.