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

Boys --> 54
7th grade --> 68
8th grade --> 82

7th grade girls --> 40

8th grade girls --> (Total girls) - (7th grade girls)
= 96 - 40
= 56

8th grade boys --> (Total 8th graders) - (8th grade girls)
= 82 - 56
= 26

To find the number of 8th-grade boys who attended the camp, we first need to find the number of 8th-grade students overall.

We know that there were 150 students in total, and from that, we can calculate the number of 8th graders by subtracting the number of 7th graders from the total number of students:

Total number of 8th graders = Total number of students - Number of 7th graders
Total number of 8th graders = 150 - 68
Total number of 8th graders = 82

We also know that there were 54 boys in total, but we don't know how many of them were 8th graders. However, we know that 40 of the girls were 7th graders.

Since the total number of 7th graders is 68 and 40 of them are girls, we can find the number of 7th-grade boys by subtracting the number of 7th-grade girls from the total number of 7th graders:

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, to find the number of 8th-grade boys, we subtract the number of 7th-grade boys from the total number of boys:

Number of 8th-grade boys = Total number of boys - 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 Apollo Math Camp.