A two-way table counts every combination of two categories. Every probability you need is one number from the table divided by one total; the question decides which total.
| Step | On 200 students: studied 90 pass, 30 fail; did not study 40 pass, 40 fail | |
|---|---|---|
| 1 | Add the row and column totals. The grand total is the sum of all cells. | studied , not ; pass , fail ; total |
| 2 | For "both", divide one cell by the grand total. This is the joint probability. | |
| 3 | For one category, divide its total by the grand total. This is the marginal probability. | |
| 4 | For "given", divide the cell by the total of the condition. The condition is your new sample space (conditional probability). |