10 grams of hydrogen and 142 grams of chlorine are made to react with each other. The remaining amount of reactant gas is made to react with excess oxygen. The same amount of the above reactant gas is made to react with nitrogen. Calculate the amounts of the products formed in both reactions.