6. A research worker studying colour preference and the age of a random sample of 50 children obtained the results shown below.
| Age in years | Red | Blue | Totals |
| 4 | 12 | 6 | 18 |
| 8 | 10 | 7 | 17 |
| 12 | 6 | 9 | 15 |
| Totals | 28 | 22 | 50 |
Using a \(5 \%\) significance level, carry out a test to decide whether or not there is an association between age and colour preference. State your hypotheses clearly.