Two-Way Tables

Read a two-way table, complete it from its totals, find fractions, percentages and ratios of a row, a column or the whole, and build one from a list or from words.

Before you start

  • A frequency table lists each value or category with its frequency, and the frequencies add up to the total (Tally and Frequency Tables).
  • A percentage of a group is the part out of that group's total, times 100%: 12 out of 48 is 1248×100%=25%\frac{12}{48} \times 100\% = 25\%.

What a Two-Way Table Shows

A frequency table records one thing about each person or thing: a colour, a number of siblings. A two-way table records two things about each person or thing at once, such as whether the student is a boy or a girl and which CCA group the student is in. One of the two things is listed down the side (the rows), the other along the top (the columns).

Each cell inside the table is the number of people (or things) that have both: the cell in the row "Sports" and the column "Girls" is the number of girls whose CCA is a sport.

The Total column gives the total of each row, and the Total row gives the total of each column. The cell in the bottom right-hand corner is the grand total: the number of people (or things) in the whole table.

Two-way tables

The cells of each row add up to that row's total. The cells of each column add up to that column's total.

The row totals add up to the grand total, and so do the column totals. Both ways must give the same number.

The grand total is the cell in the bottom right-hand corner.

Secondary 1 students by CCA group
CCA groupBoysGirlsTotal
Sports322456
Uniformed groups202646
Performing arts123042
Clubs and societies162036
Total80100180

Example 1: Reading cells and totals

Every Secondary 1 student of a school is in one CCA group. The two-way table above shows the number of boys and of girls in each group.

(a) How many girls are in performing arts?

(b) How many Secondary 1 students are in uniformed groups?

(c) How many Secondary 1 boys are there?

(d) Which CCA group has the most girls?

(e) How many more girls than boys are in performing arts?

(f) Check that the table is consistent.

Solution

(a) Row "Performing arts", column "Girls": 30.

(b) Row "Uniformed groups", column "Total": 46.

(c) Row "Total", column "Boys": 80.

(d) Down the column "Girls", the largest number is 30, in the row "Performing arts".

(e) In the row "Performing arts": 30−12=1830 - 12 = 18.

(f) Each row: 32+24=5632 + 24 = 56, 20+26=4620 + 26 = 46, 12+30=4212 + 30 = 42, 16+20=3616 + 20 = 36.

Each column: boys 32+20+12+16=8032 + 20 + 12 + 16 = 80; girls 24+26+30+20=10024 + 26 + 30 + 20 = 100.

Grand total both ways: 80+100=18080 + 100 = 180 and 56+46+42+36=18056 + 46 + 42 + 36 = 180.

(a) 30 girls (b) 46 students (c) 80 boys (d) Performing arts (e) 18 more girls (f) Every row and column adds up, and both ways give 180.

Fractions, Percentages and Ratios

A fraction or percentage from a two-way table is always a part out of a whole, and the question says which whole. "What percentage of the boys" means out of the boys only, the total of the column "Boys". "What fraction of the students in performing arts" means out of that row's total. "What percentage of all the students" means out of the grand total.

The same cell can give different answers for different wholes, so find the whole first.

Choosing the whole

"Of the boys", "of the girls", "of the students in sports": the whole is that row's or that column's total.

"Of all the students": the whole is the grand total.

Fraction =partwhole= \frac{\text{part}}{\text{whole}} and percentage =partwhole×100%= \frac{\text{part}}{\text{whole}} \times 100\%.

To compare two groups of different sizes, compare their percentages (or fractions), not their numbers.

Example 2: Fractions, percentages and ratios

Use the table of Secondary 1 students by CCA group in Example 1.

(a) What percentage of the boys are in sports?

(b) What percentage of the girls are in uniformed groups?

(c) What fraction of the students in performing arts are girls?

(d) What fraction of all the Secondary 1 students are boys?

(e) Find the ratio of boys to girls in clubs and societies.

Solution

(a) The whole is the boys, 80 in all. 32 of them are in sports: 3280×100%=40%\frac{32}{80} \times 100\% = 40\%.

(b) The whole is the girls, 100 in all. 26 of them are in uniformed groups: 26100×100%=26%\frac{26}{100} \times 100\% = 26\%.

(c) The whole is the students in performing arts, 42 in all. 30 of them are girls: 3042=57\frac{30}{42} = \frac{5}{7} (divide by the HCF, 6).

(d) The whole is all the students, the grand total 180. 80 of them are boys: 80180=49\frac{80}{180} = \frac{4}{9} (divide by 20).

(e) Boys : girls in clubs and societies =16:20=4:5= 16 : 20 = 4 : 5 (divide both terms by 4).

(a) 40% (b) 26% (c) 57\frac{5}{7} (d) 49\frac{4}{9} (e) 4 : 5

Example 3: "Of the girls" or "of all the students"?

All 200 Secondary 1 students of a school took a swimming test. The table shows who can swim 50 metres.

Can swim 50 mCannot swim 50 mTotal
Boys9624120
Girls72880
Total16832200

(a) What percentage of the boys can swim 50 m?

(b) What percentage of the girls can swim 50 m?

(c) What percentage of all the students can swim 50 m?

(d) What fraction of the students who can swim 50 m are girls?

(e) Ravi says, "More boys than girls can swim 50 m, so the boys are better swimmers." Is he right?

Solution

(a) Out of the 120 boys: 96120×100%=80%\frac{96}{120} \times 100\% = 80\%.

(b) Out of the 80 girls: 7280×100%=90%\frac{72}{80} \times 100\% = 90\%.

(c) Out of all 200 students: 168200×100%=84%\frac{168}{200} \times 100\% = 84\%.

(d) Out of the 168 who can swim 50 m: 72168=37\frac{72}{168} = \frac{3}{7} (divide by the HCF, 24).

(e) 96 boys and 72 girls can swim 50 m, but there are more boys (120) than girls (80). Out of their own totals, 80% of the boys and 90% of the girls can swim 50 m.

(a) 80% (b) 90% (c) 84% (d) 37\frac{3}{7} (e) No: a greater share of the girls (90%) than of the boys (80%) can swim 50 m.

Completing a Two-Way Table

When some cells are missing, the totals give them back. A row or column with only one unknown cell can be finished at once: the unknown is the total minus the other cells. Each cell found may leave another row or column with only one unknown, so work round the table until it is full.

When two cells are linked (one is twice the other, say), write them in one unknown and solve an equation.

Completing a two-way table

Find a row or a column with only one unknown. The unknown == the total −- the other cells of that row or column.

Repeat until every cell is found.

Check at the end: every row and every column adds up, and both sets of totals give the grand total.

Example 4: Missing cells found from the totals

The 40 students of Class 1A were asked how they travel to school. The two-way table shows some of the results. Find the numbers aa, bb, cc, dd, ee and ff.

How the students of Class 1A travel to school
MRTBusWalkTotal
Boys8aa522
Girlsbb7ccdd
Total15eeff40

Solution

Row "Boys" has only one unknown: 8+a+5=228 + a + 5 = 22, so a=22−13=9a = 22 - 13 = 9.

Column "Total": 22+d=4022 + d = 40, so d=18d = 18 (there are 18 girls).

Column "MRT": 8+b=158 + b = 15, so b=7b = 7.

Row "Girls" now has only one unknown: 7+7+c=187 + 7 + c = 18, so c=4c = 4.

Column "Bus": e=9+7=16e = 9 + 7 = 16.

Column "Walk": f=5+4=9f = 5 + 4 = 9.

Check the Total row: 15+16+9=4015 + 16 + 9 = 40, the grand total.

The completed table
MRTBusWalkTotal
Boys89522
Girls77418
Total1516940

a=9a = 9, b=7b = 7, c=4c = 4, d=18d = 18, e=16e = 16 and f=9f = 9.

Example 5: Two linked cells

The Library Club has 45 members from Secondary 1 and Secondary 2. The number of Secondary 1 girls is twice the number of Secondary 1 boys.

Secondary 1Secondary 2Total
Boysxx11
Girls2x2x
Total2445

(a) Find the value of xx.

(b) Complete the table.

(c) What fraction of the girls are in Secondary 2?

Solution

(a) Column "Secondary 1": x+2x=24x + 2x = 24, so 3x=243x = 24 and x=8x = 8 (divide both sides by 3).

So there are 8 Secondary 1 boys and 2×8=162 \times 8 = 16 Secondary 1 girls.

(b) Row "Total": Secondary 2 has 45−24=2145 - 24 = 21 members.

Column "Secondary 2": girls =21−11=10= 21 - 11 = 10.

Row "Boys": 8+11=198 + 11 = 19. Row "Girls": 16+10=2616 + 10 = 26.

Check: 19+26=4519 + 26 = 45, the grand total.

The completed table
Secondary 1Secondary 2Total
Boys81119
Girls161026
Total242145

(c) The whole is the 26 girls, and 10 of them are in Secondary 2: 1026=513\frac{10}{26} = \frac{5}{13} (divide by 2).

(a) x=8x = 8 (c) 513\frac{5}{13} of the girls are in Secondary 2.

Building a Two-Way Table

A two-way table can be built from a list of raw data in which each item records two things, such as "BY" for a boy who answered Yes. Draw the table with a row for each value of one thing and a column for each value of the other, then go through the list once, counting each item into its cell.

It can also be built from a description in words. Draw the empty table first, write each number given into its cell, and then complete the table from its totals.

Example 6: A two-way table from a list

Mrs Goh asked 20 students, "Did you have breakfast before school today?" She wrote B for a boy or G for a girl, then Y for Yes or N for No:

BY, GN, GY, BY, BN, GY, BY, GY, GN, BY, BN, GY, BY, GN, GY, BN, BY, GY, GN, BY

(a) Make a two-way table of the answers.

(b) What percentage of the girls did not have breakfast?

(c) What percentage of all the students had breakfast?

Solution

(a) Rows for Boys and Girls, columns for Yes and No. Count each code: BY 7, BN 3, GY 6, GN 4.

YesNoTotal
Boys7310
Girls6410
Total13720

Check: the grand total is 20, the number of students asked.

(b) The whole is the 10 girls, and 4 answered No: 410×100%=40%\frac{4}{10} \times 100\% = 40\%.

(c) The whole is all 20 students, and 13 answered Yes: 1320×100%=65%\frac{13}{20} \times 100\% = 65\%.

(b) 40% of the girls (c) 65% of all the students

Example 7: A two-way table from words

On Sports Day, each of 120 Secondary 1 students took part in exactly one of two events, the sprint or the long jump. 70 of the students were boys. 45 of the boys ran the sprint, and 30 of the girls did the long jump.

(a) Draw and complete a two-way table.

(b) What fraction of the students who did the long jump were girls?

(c) What percentage of the girls ran the sprint?

Solution

(a) Rows for Boys and Girls, columns for Sprint and Long jump. Write in the numbers given: boys 70, boys in the sprint 45, girls in the long jump 30, grand total 120.

Girls: 120−70=50120 - 70 = 50.

Boys in the long jump: 70−45=2570 - 45 = 25.

Girls in the sprint: 50−30=2050 - 30 = 20.

Sprint: 45+20=6545 + 20 = 65. Long jump: 25+30=5525 + 30 = 55. Check: 65+55=12065 + 55 = 120.

SprintLong jumpTotal
Boys452570
Girls203050
Total6555120

(b) The whole is the 55 long jumpers, and 30 of them were girls: 3055=611\frac{30}{55} = \frac{6}{11} (divide by 5).

(c) The whole is the 50 girls, and 20 of them ran the sprint: 2050×100%=40%\frac{20}{50} \times 100\% = 40\%.

(b) 611\frac{6}{11} (c) 40%

Common Mistakes

  • Mixing up rows and columns: "boys in sports" is the cell where the row "Sports" meets the column "Boys".
  • Taking the wrong whole: a percentage "of the boys" is out of the total for boys, not out of the grand total; "of the students who can swim" is out of that column's total.
  • Comparing groups of different sizes by their numbers. More boys than girls may be able to swim simply because there are more boys; compare percentages.
  • Adding a Total cell in with the cells of its row or column, which counts the same people twice.
  • Not checking: every row and column must add up, and the row totals and the column totals must give the same grand total.

Practice

Try each question before you open its solution.

Practice 1: Books borrowed by level

The school library recorded the books borrowed by Secondary 1 and Secondary 2 students in one week.

FictionNon-fictionTotal
Secondary 16436100
Secondary 2453580
Total10971180

(a) How many non-fiction books did Secondary 2 students borrow?

(b) How many books did Secondary 1 students borrow altogether?

(c) How many fiction books were borrowed?

(d) What percentage of the books borrowed by Secondary 1 students were fiction?

ShowHide solution

(a) Row "Secondary 2", column "Non-fiction": 35.

(b) Row "Secondary 1", column "Total": 100.

(c) Row "Total", column "Fiction": 109.

(d) Out of the 100 books of Secondary 1: 64100×100%=64%\frac{64}{100} \times 100\% = 64\%.

(a) 35 (b) 100 (c) 109 (d) 64%

Practice 2: Hot and iced drinks

A drinks stall at a hawker centre sold 120 drinks one afternoon, each hot or iced. Find the numbers aa, bb, cc, dd and ee, and then the percentage of the iced drinks that were teh.

KopiTehBarleyTotal
Hot30aa1570
Icedbb10ccdd
Total5035ee120
ShowHide solution

Row "Hot": 30+a+15=7030 + a + 15 = 70, so a=70−45=25a = 70 - 45 = 25.

Column "Kopi": 30+b=5030 + b = 50, so b=20b = 20.

Column "Total": 70+d=12070 + d = 120, so d=50d = 50.

Row "Iced": 20+10+c=5020 + 10 + c = 50, so c=20c = 20.

Column "Barley": e=15+20=35e = 15 + 20 = 35.

Check: column "Teh" 25+10=3525 + 10 = 35, and the Total row 50+35+35=12050 + 35 + 35 = 120.

Iced drinks that were teh: 1050×100%=20%\frac{10}{50} \times 100\% = 20\%.

a=25a = 25, b=20b = 20, c=20c = 20, d=50d = 50, e=35e = 35; 20% of the iced drinks were teh.

Practice 3: Who owns a pet?

150 students were asked whether they own a pet.

Own a petDo not own a petTotal
Boys154560
Girls276390
Total42108150

(a) What percentage of the boys own a pet?

(b) What percentage of the girls own a pet?

(c) What percentage of all the students own a pet?

(d) What fraction of the pet owners are girls?

ShowHide solution

(a) Out of the 60 boys: 1560×100%=25%\frac{15}{60} \times 100\% = 25\%.

(b) Out of the 90 girls: 2790×100%=30%\frac{27}{90} \times 100\% = 30\%.

(c) Out of all 150 students: 42150×100%=28%\frac{42}{150} \times 100\% = 28\%.

(d) Out of the 42 pet owners: 2742=914\frac{27}{42} = \frac{9}{14} (divide by 3).

(a) 25% (b) 30% (c) 28% (d) 914\frac{9}{14}

Practice 4: Who wears spectacles?

The two-way table shows the number of students in three Secondary 1 classes who wear spectacles and who do not.

ClassWear spectaclesDo not wear spectaclesTotal
1A182240
1B171734
1C142640
Total4965114

(a) How many students in 1B wear spectacles?

(b) How many of the 114 students do not wear spectacles?

(c) Ali says, "1A has the greatest share of students who wear spectacles, because 18 is the largest of the three class numbers in that column." Is he right? Explain with percentages.

ShowHide solution

(a) Row "1B", column "Wear spectacles": 17.

(b) Row "Total", column "Do not wear spectacles": 65. (Check: 22+17+26=6522 + 17 + 26 = 65.)

(c) The classes are of different sizes, so compare each class out of its own total.

1A: 1840×100%=45%\frac{18}{40} \times 100\% = 45\%

1B: 1734×100%=50%\frac{17}{34} \times 100\% = 50\%

1C: 1440×100%=35%\frac{14}{40} \times 100\% = 35\%

1B has the greatest share, 50%, although 1A has the most students who wear spectacles.

(a) 17 (b) 65 (c) No: 1B has the greatest share (50%, against 45% for 1A and 35% for 1C).

Practice 5: The school choir

The school choir has 50 members from Secondary 1 and Secondary 2, and 35 of them are girls. The numbers of Secondary 1 girls and Secondary 2 girls are in the ratio 2 : 3, so they are written 2x2x and 3x3x.

Secondary 1Secondary 2Total
Boys6915
Girls2x2x3x3x35
Total50

(a) Find the value of xx.

(b) Complete the table.

(c) What percentage of the Secondary 1 members are girls?

ShowHide solution

(a) Row "Girls": 2x+3x=352x + 3x = 35, so 5x=355x = 35 and x=7x = 7 (divide both sides by 5).

Secondary 1 girls: 2×7=142 \times 7 = 14. Secondary 2 girls: 3×7=213 \times 7 = 21. (Check: 14+21=3514 + 21 = 35.)

(b) Secondary 1: 6+14=206 + 14 = 20. Secondary 2: 9+21=309 + 21 = 30. Check: 20+30=5020 + 30 = 50.

Secondary 1Secondary 2Total
Boys6915
Girls142135
Total203050

(c) Out of the 20 Secondary 1 members: 1420×100%=70%\frac{14}{20} \times 100\% = 70\%.

(a) x=7x = 7 (c) 70% of the Secondary 1 members are girls.

Practice 6: Homework in the library or at home

Farah asked 24 students in Secondary 1 and Secondary 2 whether they did their homework yesterday in the school library or at home. She wrote L for the library or H for home, then 1 for Secondary 1 or 2 for Secondary 2:

L1, H2, L2, L1, H1, L2, L1, L2, H1, L2, L1, H2, H1, L2, L1, L2, H1, L1, L2, H2, L1, H1, L2, L2

(a) Make a two-way table.

(b) What percentage of the Secondary 2 students did their homework in the library?

(c) What fraction of the students who did their homework at home are in Secondary 1?

ShowHide solution

(a) Count each code: L1 7, H1 5, L2 9, H2 3.

LibraryHomeTotal
Secondary 17512
Secondary 29312
Total16824

Check: the grand total is 24, the number of students asked.

(b) Out of the 12 Secondary 2 students: 912×100%=75%\frac{9}{12} \times 100\% = 75\%.

(c) Out of the 8 who did their homework at home: 58\frac{5}{8}.

(b) 75% (c) 58\frac{5}{8}

Practice 7: Bicycles in the Science Club

There are 48 students in the Science Club, and 20 of them are girls. 21 of the boys and 12 of the girls own a bicycle.

(a) Copy and complete the two-way table.

Own a bicycleDo not own a bicycleTotal
Boys
Girls
Total

(b) How many students in the club do not own a bicycle?

(c) What percentage of the girls own a bicycle?

(d) What fraction of the students who own a bicycle are boys?

ShowHide solution

(a) Number of boys: 48−20=2848 - 20 = 28.

Boys who do not own a bicycle: 28−21=728 - 21 = 7. Girls who do not: 20−12=820 - 12 = 8.

Own a bicycle: 21+12=3321 + 12 = 33. Do not: 7+8=157 + 8 = 15. Check: 33+15=4833 + 15 = 48.

Own a bicycleDo not own a bicycleTotal
Boys21728
Girls12820
Total331548

(b) Row "Total", column "Do not own a bicycle": 15.

(c) The whole is the 20 girls: 1220×100%=60%\frac{12}{20} \times 100\% = 60\%.

(d) The whole is the 33 students who own a bicycle, and 21 of them are boys: 2133=711\frac{21}{33} = \frac{7}{11} (divide by 3).

(b) 15 students (c) 60% (d) 711\frac{7}{11}

Practice 8: By bus or not

There are 200 Secondary 1 students in a school, and 45% of them are girls. 60% of the girls and 50 of the boys take a bus to school.

(a) Draw and complete a two-way table with columns "By bus" and "Not by bus".

(b) What percentage of all the students take a bus to school?

(c) Find the ratio of the boys who do not take a bus to the girls who do not.

ShowHide solution

(a) Girls: 45100×200=90\frac{45}{100} \times 200 = 90. Boys: 200−90=110200 - 90 = 110.

Girls who take a bus: 60100×90=54\frac{60}{100} \times 90 = 54. Girls who do not: 90−54=3690 - 54 = 36.

Boys who do not take a bus: 110−50=60110 - 50 = 60.

By bus: 50+54=10450 + 54 = 104. Not by bus: 60+36=9660 + 36 = 96. Check: 104+96=200104 + 96 = 200.

By busNot by busTotal
Boys5060110
Girls543690
Total10496200

(b) 104200×100%=52%\frac{104}{200} \times 100\% = 52\%

(c) 60:36=5:360 : 36 = 5 : 3 (divide both terms by 12)

(b) 52% (c) 5 : 3

Practice 9: Who did better?

The table shows the results of a Mathematics test for a group of students.

PassedFailedTotal
Boys301040
Girls351550
Total652590

Siti says, "The girls did better than the boys, because more girls passed." Is she right? Explain with percentages.

ShowHide solution

35 girls and 30 boys passed, but there are 50 girls and only 40 boys, so compare out of each group's own total.

Boys: 3040×100%=75%\frac{30}{40} \times 100\% = 75\% passed.

Girls: 3550×100%=70%\frac{35}{50} \times 100\% = 70\% passed.

No: a greater share of the boys passed (75%) than of the girls (70%).

Practice 10: Find the mistake

Mr Tan made a two-way table of the sport chosen by Secondary 1 and Secondary 2 students for a games afternoon. When he copied it out, he wrote one cell (not a total) wrongly.

FootballBadmintonSwimmingTotal
Secondary 1149730
Secondary 21113528
Total25211258

Which cell is wrong, and what should it be?

ShowHide solution

Check each row: Secondary 1, 14+9+7=3014 + 9 + 7 = 30, right. Secondary 2, 11+13+5=2911 + 13 + 5 = 29, not 28.

Check each column: Football 14+11=2514 + 11 = 25, right. Badminton 9+13=229 + 13 = 22, not 21. Swimming 7+5=127 + 5 = 12, right.

The totals agree with each other: 30+28=5830 + 28 = 58 and 25+21+12=5825 + 21 + 12 = 58.

The only cell in both the wrong row and the wrong column is Secondary 2, Badminton. It should be 28−11−5=1228 - 11 - 5 = 12 (and also 21−9=1221 - 9 = 12).

The cell for Secondary 2, Badminton should be 12, not 13.

Practice 11: Sports and other CCAs

There are 160 Secondary 1 students, and the ratio of boys to girls is 9 : 7. Each student is in a sports CCA or in another CCA. 23\frac{2}{3} of the boys and 25\frac{2}{5} of the girls are in a sports CCA.

(a) Draw and complete a two-way table.

(b) What fraction of the students in other CCAs are girls?

(c) Find the ratio of boys to girls in sports CCAs.

ShowHide solution

(a) Boys: 916×160=90\frac{9}{16} \times 160 = 90. Girls: 716×160=70\frac{7}{16} \times 160 = 70.

Boys in a sports CCA: 23×90=60\frac{2}{3} \times 90 = 60, so 90−60=3090 - 60 = 30 boys are in other CCAs.

Girls in a sports CCA: 25×70=28\frac{2}{5} \times 70 = 28, so 70−28=4270 - 28 = 42 girls are in other CCAs.

Sports: 60+28=8860 + 28 = 88. Other: 30+42=7230 + 42 = 72. Check: 88+72=16088 + 72 = 160.

Sports CCAOther CCATotal
Boys603090
Girls284270
Total8872160

(b) Out of the 72 students in other CCAs: 4272=712\frac{42}{72} = \frac{7}{12} (divide by 6).

(c) 60:28=15:760 : 28 = 15 : 7 (divide both terms by 4)

(b) 712\frac{7}{12} (c) 15 : 7

Key Points

  • A two-way table records two things about each person or thing: one down the side (rows), one along the top (columns). Each cell counts the people or things that have both.
  • The cells of each row add up to the row total, and the cells of each column to the column total.
  • The row totals and the column totals both add up to the grand total, in the bottom right-hand corner.
  • A fraction or percentage is a part out of a whole: "of the boys" is out of the boys' total, "of all the students" out of the grand total.
  • Compare groups of different sizes by percentages, not by numbers.
  • A missing cell is the total minus the other cells of a row or column with only one unknown; linked cells are found from an equation.
  • To build a two-way table from a list, count each item into its cell; from words, write in the numbers given and complete the table from its totals.
  • Check every completed table: rows, columns and the grand total both ways.

‹ 15.3 Tally and Frequency Tables 15.5 Pictograms ›

All Secondary 1 (Grade 7) lessons

Home Campus has lessons, practice questions with worked solutions and worksheets for Primary 3 to Secondary 1. Register free to practise and keep track of progress.

This lesson follows the Singapore Secondary 1 syllabus and was checked question by question before it was published. Spotted a mistake? Tell us.