In a class of 30 students, the mean height of the 12 girls is 164 cm and the mean height of the 18 boys is 166 cm. Find the mean height of the whole class.​