Drawing a dynamic jagged line

I have two points,lets say x1,y1=55,140   x2,y2=25,125 and I want to connect it using display.Line() but not straight across. Instead have it meet half way and keep the lines straight. Example in attachment. How would I achieve this?

Solved

local InHwX  = InX-((InX-OutX)/2)

local OutHwX = OutX-((OutX-InX)/2)

–stands for Input halfway x 

Solved

local InHwX  = InX-((InX-OutX)/2)

local OutHwX = OutX-((OutX-InX)/2)

–stands for Input halfway x