Suppose you're comparing exam results for boys and girls, and overall girls have a higher pass rate than boys. However, if you look at the results for English and maths separately, boys have a higher pass rate than girls in both subjects. How can boys beat the girls in both subjects, yet the girls beat the boys overall?

Explain using examples of statistics.