Last summer, 150 students attended the Apollo Math Camp, of whom 96 were girls and 54 were boys. Also, 68 were 7th graders and 82 were 8th graders. How many 8th-grade boys attended the camp if 40 of the girls were 7th graders?

girls: 96

40 were 7th-graders, leaves 56 8th grade girls
so, of the 82 8th graders, 26 were boys

To find out how many 8th-grade boys attended the camp, let's break down the information given:

- The total number of students who attended the camp is 150.
- Out of these students, 96 were girls and 54 were boys.
- Additionally, 68 students were 7th graders and 82 were 8th graders.
- We also know that 40 girls were 7th graders.

To find the number of 8th-grade boys, we can start by subtracting the number of 7th graders from the total number of boys.

Total number of boys = Number of boys - Number of 7th-grade boys

Since we know that the total number of boys is 54, the equation becomes:

Number of 8th-grade boys = 54 - Number of 7th-grade boys

Now, we need to determine the number of 7th-grade boys. We can do this by subtracting the number of 7th-grade girls (40) from the total number of 7th graders (68).

Number of 7th-grade boys = Total number of 7th graders - Number of 7th-grade girls

Number of 7th-grade boys = 68 - 40
Number of 7th-grade boys = 28

Now, we can substitute this value back into our previous equation to calculate the number of 8th-grade boys:

Number of 8th-grade boys = 54 - Number of 7th-grade boys
Number of 8th-grade boys = 54 - 28
Number of 8th-grade boys = 26

Therefore, there were 26 8th-grade boys who attended the camp.