You can
put this solution on YOUR website!The hard core way of using this would be to simply use the formula for roots of a cubic equation. Check out
this article and follow the formula. It becomes easier if the square component is missing, as it is in your case. I cannot see any easier solution. I wonder if you misinterpret the question that was asked. What was the text of the question exactly?