Bobby is trying to decide between two gym memberships. Gym A has a membership fee of $40 and then you pay $10 per class. Gym B has a membership fee of $30 and is $15 per class. How many classes will make the gyms the same price?