Xiao Yang bought a chicken for 28 yuan and sold it for 29 yuan. Then he thought it was not worth it, bought it back for 30 yuan, and sold it to another person for 31 yuan. How much did Xiao Yang earn in this process?
小杨花了28元钱买了一只鸡，29元钱卖掉了．然后他觉得不划算，花了30元钱又买回来了，31元钱卖给另外一个人．在这个过程中小杨赚了多少元钱
<gadget id="calculator">31 - 30</gadget>
<output>1</output>

<gadget id="calculator">1 + 1</gadget>
<output>2</output>

<result>2</result>