Concept: Use a linear equation to split the total into two groups based on a known difference.Explanation: Let the number of girls be x. Since girls exceed boys by 150, the number of boys is x−150.Total pupils: girls + boys = 940.So, x+(x−150)=940.Simplify: 2x−150=940.Add 150 to both sides: 2x=1090.Divide by 2: x=21090=545.