Given that the only possible choices for pizza are cheese or pepperoni, we can see that 40/68 students preferred cheese, so 10/17 (if simplified).
Now if we apply this to 340 students, then it would be expected that 340 multiplied by 10/17 students would prefer cheese, which is equal to 200 students.