Concept:Let the number of boys be represented by a variable and form a simple linear equation from the total students.Explanation:Let the number of boys be x.The girls are 7 more than the boys, so girls =x+7.Total students in the class =23.Therefore, x+(x+7)=23.Simplifying: 2x+7=23.Subtract 7 from both sides: 2x=16.Divide both sides by 2: x=8.So, there were 8 boys in the class.Answer:The number of boys is 8.