There is a couple of ways to do this. (i.e. determinate methods or rearranging e.t.c)
Using the rearranging method we get.

and

.
For a unique solution we need the lines to be two different lines and intersecting. That is the
gradients cannot be the same (if they were they'd be parallel and wouldn't intersect). So you would have

Giving

For no soultion, the lines have to not intersect, that is the
gradients have to be the same but the
y-intercepts have to be different (if the y-intercepts were the same then you'd have the same line, i.e. infinite sols).
So you can equate the gradients and make the y-ints

each other.
For infinite sols, we need the
gradients to be the same and the
y-intercepts to be the same, so that we get the same lines.
You should be able to get it from that
