There are 24 students in Ms. Messing's class. Six more students walk to school than ride their bikes. The number of students who ride their bikes is the same as the number of students who are driven to school. How many students walk to school?