Answer:
Out of 1000 people who said that they attend a religious service at least once a week, 31 stopped to help a person with car trouble

Of 1200 people interviewed who had not attended a religious service at least once a month, 22 stopped to help a person with car trouble.

We will use Comparing Two Proportions






i.e. religion service makes no difference
i.e. religion service makes difference

Formula of test statistic :

Substitute the values
test statistic :

Refer the z table for p value
p value = 0.9726
α=0.05
p value >α
So, we failed to reject null hypothesis
Hence religion service makes no difference