Explanation:
Number of students who wore a hat
= 4/7 * Number of students who bought a ticket
= 4/7 * 350 students
= 200 students.
Number of students not wearing a hat
= Number of students who bought a ticket - Number of students who wore a hat
= 350 students - 200 students
= 150 students.