Two points (a,0) and (0,b) are joined by a straight line. Another point on this line is (1,(a−m)ab). find m.
A straight line drawn through the point A (2, 1) making an angle π/4 with positive x-axis intersects another line x + 2y + 1 = 0 in the point B. Find length AB.