Artificial intelligent assistant

Why would this solution be an upper-tailed rather than a lower-tailed? ![enter image description here]( Confused I thought if the alternative hypothesis was greater than the null hypothesis then we would do a upper-tailed? Thank you

If your test-statistic is of the form $$Z^{*}=\frac{\hat{p}_1-\hat{p}_2 }{\sqrt{p^{*}(1-p^{*})(\frac{1}{n_1}+\frac{1}{n_2})}}$$ where, $p^{*}=\frac{x_1+x_2}{n_1+n_2}$

Now if $\hat{p}_1$ is significantly greater than $\hat{p}_2$, your test statistic falls in the upper tail region of the Normal distribution.

Please go through this link for further reading.

xcX3v84RxoQ-4GxG32940ukFUIEgYdPy 6efa88ad27fe9c1dbc4bcfe25dc5f6ed