Question: how to get z value from p value?
Answer: Knowing only p-value, we assume that we are talking about symmetrical x values. In this case, p-value can be found by doubling CDF of left-tail x, as shown on picture below. To find out z-score, we just need to get inverse of CDF of p-value divided by 2.