See Manual statistics
When do you use chi-square? If you want to look at the relationship between two categorical variables.
if you want to see a very useful tutorial
on how to exactly do Chi-Square and how to interpret it.
for the assumptions that you need to check before doing a Chi-Square.