But for solving, how do I give conditions on a, b and c generally (They should be rational) .