A Youth Correction Center completed a study to explore the proportion of delinquent

behaviour, according to birth order, among two groups of teenagers (males and
females, age 12-17). The data are given in the table below. Determine whether there is
a difference between male and female offenders, according to their birth order. Use a
0.02 level of significance and show all steps of the hypothesis process.

Males Females
Oldest 265 34
In-between 247 25
Youngest 231 29
Only child 71 19
Total 814 107

Should I use the Homogeneity or independence test to solve this?

The table got messed up, but for each category, the first number is for males, and the second number is for females!