As a reward for winning a math competition, 26 students in the 7th grade visited a theme park. On one ride, 3 equal groups of students could be seated and 2 students were left over. Write and solve an equation to find how many students could be seated in each group.