Suppose that ~ Binomial and ~ Binomial and you want to test .

If and are large then and

and so .

With then and so the test is based on .

You are testing the hypothesis H0: , that is, against (I suppose) a two-sided alternative.

Decide on a level of significance, substitute the data and crunch the numbers.