construct the two-way table to determine the total number of eighth graders

To determine the total number of eighth graders in a two-way table, we need to include the number of eighth graders in each category along the top row and include the different categories in the leftmost column. Here is an example of a two-way table for a middle school with different categories of eighth graders:

| Category | Number of Eighth Graders |
|----------------|---------------------------|
| Boys | 150 |
| Girls | 120 |
| Total | 270 |

In this example, there are a total of 270 eighth graders in the middle school.