Finding a point on a line with a given equation