Solution of an Equation using Trial and Error Method