a and b began business with rs. 3000 and rs. 4000 after 8 months, a withdraws rs. 1000 and b advances rs. 1000 more. at the end of the year, their profits amounted to rs. 798 find the share of a.	Choose the most appropriate option:	A) 240	B) 388	C) 379	D) 304	E) 122
<gadget id="calculator">3_000 * 8</gadget>
<output>24_000</output>

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

<gadget id="calculator">12 - 8</gadget>
<output>4</output>

<gadget id="calculator">2_000 * 4</gadget>
<output>8_000</output>

<gadget id="calculator">24_000 + 8_000</gadget>
<output>32_000</output>

<gadget id="calculator">4_000 * 8</gadget>
<output>32_000</output>

<gadget id="calculator">4_000 + 1_000</gadget>
<output>5_000</output>

<gadget id="calculator">5_000 * 4</gadget>
<output>20_000</output>

<gadget id="calculator">32_000 + 20_000</gadget>
<output>52_000</output>

<gadget id="calculator">32_000 + 52_000</gadget>
<output>84_000</output>

<gadget id="calculator">798 / 84_000</gadget>
<output>19/2_000 = around 0.0095</output>

<gadget id="calculator">(19/2_000) * 32_000</gadget>
<output>304</output>

<result>D</result>
a and b began business with rs. 3000 and rs. 4000 after 8 months, a withdraws rs. 1000 and b advances rs. 1000 more. at the end of the year, their profits amounted to rs. 798 find the share of a.
multiply(divide(798, add(add(multiply(3000, 8), multiply(subtract(3000, 1000), subtract(const_12, 8))), add(multiply(4000, 8), multiply(add(4000, 1000), subtract(const_12, 8))))), add(multiply(3000, 8), multiply(subtract(3000, 1000), subtract(const_12, 8))))
"explanation : ( 3 * 8 + 2 * 4 ) : ( 4 * 8 + 5 * 4 ) 8 : 13 8 / 21 * 798 = 304 answer : d"