A dance academy charges $10 per class and a one-time registration fee for $50 , a student pays a total of $90 to the academy , find the number of classes that students took .​