Find the distance between the point Q (4,3) and the point common to the lines…