Formula For Line Intersection