Xiaofang bought 6 kilograms of watermelon and lychee, and shared 24 yuan, of which watermelon was 2 yuan per kilogram, and lychee was 8 yuan per kilogram. How many kilograms of watermelon did Xiaofang buy? (solution by equation)
小芳买了西瓜和荔枝6千克，共用去24元，其中西瓜每千克2元，荔枝每千克8元，小芳买了多少千克西瓜？(用方程解)
<gadget id="calculator">8 * 6</gadget>
<output>48</output>

<gadget id="calculator">48 - 24</gadget>
<output>24</output>

<gadget id="calculator">8 - 2</gadget>
<output>6</output>

<gadget id="calculator">24 / 6</gadget>
<output>4</output>

<result>4</result>