In a classroom, the teacher wants to arrange the students into rows such that each row has either 5 or 7 students. If there are 38 students in total, how many rows have exactly 7 students if every seat is occupied? Let's think step by step and output the final answer within \boxed{}.
user