Click the green flag.
This isn't too hard. You just have to find the delta x and y between each corner and factor them out as the start end end of each line.