I need to write a Program to find the equation of a line passing through the points (X1,Y1) and (X2,Y2), and predict the value of X when Y=0.

Similiarly the Equation of a 2nd line passing through (X3,Y3) and (X4,Y4)....

Finally find out the point of intersection of the 1st Line and 2nd line...

The Equation must be of the Form y=mx+c

Please Please help me out, i have been raking my brains over this.... problem is i dont know how to work with Matlab either

Thanking you in Advance

Similiarly the Equation of a 2nd line passing through (X3,Y3) and (X4,Y4)....

Finally find out the point of intersection of the 1st Line and 2nd line...

The Equation must be of the Form y=mx+c

Please Please help me out, i have been raking my brains over this.... problem is i dont know how to work with Matlab either

Thanking you in Advance