Xiaohong has 6 table tennis balls, and Xiaoming has three times as many table tennis balls as Xiaohong. How many table tennis balls do they have in total?
小红有6个乒乓球，小明的乒乓球是小红的3倍，他们一共有多少个乒乓球．
<gadget id="calculator">6 * 3</gadget>
<output>18</output>

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

<result>24</result>