Solving One-Step Quadratic and Cubic Equations