Testing a difference of proportions

Under the null hypothesis of equal proportions the two samples are pooled to estimate the common proportion, and the z statistic counts standard errors between the observed difference and zero.

From AP Statistics.