Linear equation with given set of points on co ordinate axis