\(\overline{XY}\) is a line segments with the coordinates X (- 8,- 12) and Y(p,q). if the…