Answer :
Let the first term of both the terms be
and last term be 
Now, by using the mid point formula to find the mid point of the segment -

Now, by substituting the values of both x and y -

Adding -7 and 6 -

Now, move the negative in front of the fraction -


$=(a^2-10a)-(b^2+6b) +16$
$=[(a^2-2(5)a+25)-25]-[(b^2+2(3)b+9)-9]+16$
$=(a-5)^2-25-(b+3)^2+9+16$
$=(a-5)^2-(b+3)^2$
There is no picture that I see:/