What percentage of boys took the survey?

Boys: 271
Girls: 249
Total: 520

Boys: 271

Total: 520

Percentage of boys in total survey:
(271 / 520) * 100 = 52.12%

So, 52.12% of the survey respondents were boys.