How is the P-value used to determine whether or not to reject the null hypothesis?

If P ≤ your critical value, you would reject the null hypothesis.