Find the value of N such that each expression is a perfect square trinomial for each of the following questions

1) p^2 - 6p + n

2) m^2 - 8m + n

3) v^2 + 24v + n

4) y^2 - 40y + n

5) v^2 - 36w + n