solve x^2 /30 +(2x+q)^2 /24=1 for x