To find out how many students preferred healthy foods, we can set up a proportion based on the information given:
For every 5 students, 2 said they liked healthy foods.
To find the number of students out of 35 who prefer healthy foods, we can calculate it as follows:
\[ \frac{2}{5} \text{ (students who like healthy foods)} \times 35 \text{ (total students)} = \frac{2 \times 35}{5} \]
Calculating that:
\[ \frac{70}{5} = 14 \]
So, 14 students preferred healthy foods.
The correct answer is 14.