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