A pet store holds training classes for dogs. The store has two different training programs. The first program charges a $35 membership fee and $5 for each class. The second program does not have a membership fee, but charges $10 for each class. For how many classes will the programs cost the same?