With we have an upper-tail alternative. Because the p-value is defined as the probability of getting a value at least as extreme as the value observed. The observed value is given by the test statistic z = 1.997 which comes from a standard normal distribution. Therefore, we compute the p-value in the following way P(Z > 1.997) = 0.0229, i.e., the p-value is 0.0229