Junior high classes of 35 students each met in the cafeteria to take achievements tests. If exactly 5 students sat at each table and 28 tables were used, how many classes took the test