I believe it is the ratio 3 : 1.
18 students chose the turkey sandwich.
Since the class has a total of 24 students, we can deduce that 6 students chose the vegetarian sandwich.
This gives us a ratio of 18 : 6.
When simplified, we get a ratio of 3 : 1.