The Total solution for NCERT class 6-12
Let P (h, k) be any point on the locus and let A (2, 4) and B(0, k).
Then, PA = PB
PA2 = PB2