A dance academy charges $24 per class and a one-time registration fee of $15. a student paid a total of $687 to the academy. find the number of classes the student took.