From the pie chart, find the percentage that represents girls.

Girls = 45% (from the chart), so boys = 100% − 45% = 55%.

Number of boys = 55% of 40 = \(\frac{55}{100} \times 40 = 22\).

Final Answer: 22