Solve for x ax+b^2=a^2-bx