Instead of working stupidly, calculate the slope and intercept of each rope, then find intersections.
Added inputs