A class of 24 students visited a science museum. Each student paid the
museum’s admission fee and $6 for lunch at the museum. The class spent
a total of $336. What was the admission fee that each student paid?