Cole viewed paintings in 3 rooms in the museum. Each room had 12 paintings. He viewed paintings in 5 more rooms that each had 9 paintings. How many paintings did Cole view at the museum?