Xiaofang and Xiaohong each have a number of candies. If Xiaofang gives Xiaohong 10 pieces, the number of candies for both of them is equal; if Xiaohong gives Xiaofang 6 pieces, Xiaofang has three times as many candies as Xiaohong. How many pieces of candy?
小方小红各有若干块糖果，若小方给小红10块，则两人的糖果数相等；若小红给小方6块，则小方的糖果数是小红的3倍，小红有多少块糖果？
<gadget id="calculator">6 * 3</gadget>
<output>18</output>

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

<gadget id="calculator">3 - 1</gadget>
<output>2</output>

<gadget id="calculator">44 / 2</gadget>
<output>22</output>

<result>22</result>