I think you need to be more specific with the question: there could be any number of curves going through those points, surely. What sort of curve are you looking for?
Let's see, is it of the form: (which would make it a line)?
Substituting this into gives:
is the equation of the line running through these two points. Does lie on this line?
So it isn't a line.
Could it be something of the form ? You could use a similar test.
What is the whole question? Find a random curve going through these points?