Our null hypothesis is that preference is independent of gender.
If preference is indeed independent of gender, we would expect, for example,

men to prefer basektball and

women to prefer basketball.
EDIT:
Calculate q.
Q follows a

-distribution with (2-1)(5-1) = 4 degrees of freedom (one less than the number of rows times one less than the number of columns)
The p-value for this test is

.
This is the smallest significance level at which the null hypothesis can be rejected. So if this value is less than 0.05, then there is enough evidence to reject the null hypothesis.