Answer:
i solved them in paper and I send them here because I couldn't in the question you made lastly.I solved these equations for x ,they could be also solved for a but is the same thing just two mor steps at the solution.
Hope I have helped you. And tell me if you don't understand anything.