Step-by-step explanation:
Total no. of students = 40
Total no. of girls = 22
Total no. of boys = 40 - 22 = 18
No. of girls walking to school = 9
No. of girls who cycle to school = 22 - 9
No. of boys who cycle to school = 7
No. of students who take the bus = 10
(6 boys and 4 girls)
No. of boys who walk to school = 18 - (7 + 6) = 5
Total no. of students who walk to school = 9 + 5 = 14