At a local fitness, members pay a $6 membership fee and $3 for each aerobics class. Nonmembers pay $4 for each aerobics class. For what number of aerobics classes will the cost for members and nonmembers be the same?