The equation for the line MN is
y=x-4
y=x+4
y=4-x
y=2x-1
The equation for the line EF is
y=4x-1
y=2x-4