ChemBalancer prioritised to first solve the RHS atom surplus, by adding one of the candidate reagents and solvents to the LHS. RXNMapper suggested that among the candidates, adding methanol would give the highest mapping confidence score. Afterwards, by adding help species of water at the LHS and ammonia at the RHS, the updated reaction was balanced. Help species were only allowed to be added to the LHS when the reaction has atom surplus at both sides.