P(-6, 1) and Q(6, 6) are the two ends of the diameter of a given…