Uncle Wang spent 18 yuan to buy a chicken from the vegetable market. After returning home, he thought it was not worthwhile, so he sold it to his neighbor for 19 yuan. After selling it, I regretted it, so I bought it back for another 20 yuan. Unexpectedly, his son sent a chicken, so he sold it to other people for 22 yuan. May I ask: How much money did Uncle Wang earn?
王大爷花18元钱从菜市场买回一只鸡，回家后想想不合算，于是19元钱卖给了邻居．卖掉之后又后悔，因此又花20元买了回来．没想到他儿子送来了一只鸡，于是22元又卖给其他人．请问：王大爷赚了多少钱？
<gadget id="calculator">22 + 19</gadget>
<output>41</output>

<gadget id="calculator">18 + 20</gadget>
<output>38</output>

<gadget id="calculator">41 - 38</gadget>
<output>3</output>

<result>3</result>