Find the equations of the straight line through $(0,a)$ on which the perpendiculars dropped from the point $(2a,2a)$ are each of length $a$ unit. Find the equations of two straight lines drawn through the point $(0,a)$ on which the perpendiculars drawn from the point $(2a,2a)$ are each of length $a$.
My Attempt:
The equation of line passing through $(0,a)$ is
$y=mx+a$ where $m$ is the slope.
How do I get the value of $m$?

Solution,
Given,
    Points: (0,a) and (2a, 2a) 
        Now,
            y - y1 = m (x - x1)
        or, y - a = m (x - 0)
        or, mx  - y + a = 0.........(i)
Since, perpendicular distance of (i) from (2a, 2a) is a.
            a = +- 2am - 2a + a / (root under) m ^ 2 + (-1) ^ 2
        or, a (root under) m ^ 2 + (-1) ^ 2 = +- a (2m - 1)
        or, (root under) m ^ 2 + (-1) ^ 2 = +- (2m - 1)
 Squaring on both sides,
            m ^ 2 + 1 = (2m - 1) ^ 2
        or, m ^ 2 + 1 = 4m ^ 2 - 4m + 1
        or, m ^ 2 = 4m ^ 2 - 4m
        or, 4m ^ 2 - m ^ 2 = 4m
        or, 3m ^ 2 = 4m
        or, 3m ^ 2 - 4m = 0
        or, m (3m - 4) = 0
     Either, m = 0                    Or, 3m - 4 = 0
                                      or, 3m = 4
                                      or, m = 4 / 3
    Putting m = 0 in equation (i),
             0.x - y + a = 0
         or, y = a
    Putting m = 4 / 3 in equation (i),
             4 / 3x - y + a = 0
         or, 4x - 3y + 3a / 3 = 0
         So, 3y = 4x + 3a
   Therefore, the required equations are y = a and 3y = 4x + 3a.

