Find the locus of a point which moves such that its distance from the line…