Instead of dividing a number by 3 and then adding 8, Anthony multiplied the number by 3 and then subtracted 8. He still got the correct answer. What was the number?