The angle will be 22 degrees since anything bigger that 90 degrees wont work.
See attachment
the midpoint is the point that is in the middle of the segment
The distance formula is derived from the Pythagorean Theorem because the length of one leg of the triangle will always be the difference of the x<span>-coordinates, and the length of the other leg will always be the difference in the </span>y<span>-coordinates</span>