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)?

We have:

Substituting this into gives:

1)

We have

Substituting again:

2)

Solving simultaneously:

2)-1)

so

is the equation of the line running through these two points. Does lie on this line?

Test:

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?