Danni thinks of a number. She subtracts 2 then multiples the result by 8. The answer is the same as subtracting 5 from the number then multiplying by 16. What is the number did Danni think of?