To change the lines, hover over the endpoints and drag.
This time, it's made by me! :) It uses simple algebra to work out the intersection.