Firs we have to gave some coordinates to the intersection point and the sahpe like this:
With the coordinades B and C we can place an equation for the line BC
Now we can find the intersection with the y axis with the general formula for a line, in any of the coordinates (I use the coordinate of C):
and then we solve for c
Now we repeat the prosses for the segment CD, so the slope will be:
Now we can writte the equation of the line like:
We can replace the coordinate (x1, y1) for (x1, 0) where x1 is the intersection, and replace the coordinate (x2, y2) for any or the coordinates we know, so I will use the coordinate C)
and we solve for x1
Now we repeat the prosedure for the line EB, so the slope is going to be