then find the values of p