Answer:
a) The test statistic is 
b) The pvalue is 0.0060.
Step-by-step explanation:
Question a:
Ha: pB < pNY
This means that the alternate hypothesis is rewritten as:

While the null hypothesis is:

The test statistic is:

In which X is the sample mean,
is the value tested at the null hypothesis and s is the standard error
pB = 0.581, pNY = 0.832
This means that 
0 is tested at the null hypothesis:
This means that 
Standard error = 0.1
This means that 
Test statistic:



The test statistic is 
Question b:
The pvalue is the probability of finding a proportion less than -0.251, that is, a difference of at least 0.251, which is the pvalue of Z = -2.51.
Looking at the z-table, Z = -2.51 has a pvalue of 0.0060
The pvalue is 0.0060.