As the groups are equally sized, they must each have 18 students in the class / 3 groups = <<18/3=6>>6 students in each group.
So each group takes 6 students in each group * 4 minutes per each student’s trip = <<6*4=24>>24 minutes to go through the museum.
#### 24