solve the equation | ScratchStats