A company is testing their new smartwatch. They wonder if alerts that prompt people to exercise cause people to exercise more than they would without the alerts. They recruit 200 subjects and randomly assign each of them to either receive the alerts or not. Here are amounts of daily activity and partial results of a chi-square test (expected counts appear below observed counts):
They want to use these results to carry out a chi-square test for homogeneity. Assume that all conditions for inference were met.
What are the values of the test statistic and P-value for their test?