Emry thought out a number, added 5 to the number, subtracted 10 from the number, and got 27. What was the original number. ​