You are given such data:
In 10th grade of total 40 students only 18 students participate in at least one extracurricular activity and 40-18=22 students do not participate.
In 9th grade of total 100-40=60 students only 32 students participate in at least one extracurricular activity and 60-32=28 students do not participate.
Then two-way table is

There are two categorical variables - Grade and Participation.
Two-way frequency table is
