Solving a Cubic equation Using an Algebraic Trick