# Is this the entire question? It seems underconstrained. Perhaps the variables have to be whole numbers, in which case you would know a and you could work from there