Is the first question properly typed ? is it y or x as the power of x ?
For the first question there are two possible sets of x and y.
There are at least two solutions to the second question. Perhaps there are more solutions.
Perhaps there is a general formula possible to derive.
==================LetAnother way Let:
we have to find a and b such that the above relations are valid.