Let . The lines whose equations are and contain points and , respectively, such that is the midpoint of . The length of equals , where and are relatively prime positive integers. Find .
Solution
The coordinates of can be written as and the coordinates of point can be written as . By the midpoint formula, we have and . Solving for gives , so the point is . The answer is twice the distance from to , which by the distance formula is . Thus, the answer is .
Want a route through all this instead of an archive? The track
puts 2,000 problems in a working order, from AMC 10 level to the IMO shortlist.