Ksp = [X][OH]^2 = 👎(2n)^2 = 4n^3 = 4x10^-18
divide both sides by 4 and you have n^3 = 1x10^-18
now take the cube root of 1x10^-18 and you get 1x10^-6 which is equal to X.
OH- however, is double that (2n), so its concentration is 2x10^-6.
This means pOH is approximately 5.8 or so and pH is 14-5.8 = 7.2.
That looks right to me 🙂
As for the second one its pretty much the same thing its just that the numbers don't seem too friendly when you work it out.