do you mean sub P (t,y) into the parametric eqns x=t and y=t^2/k? That wont work for y; you must first show there is a relation between y and k.
I think pythagoras is the only way to get a relationship between y and k, since you are given the triangle is right angled.
It doesnt take that long. Only 3 or 4 lines