a salesman commission is 5 % on all sales upto $ 10000 and 4 % on all sales exceeding this. he remits $ 31100 to his parent company after deducting his commission. find the total sales?  Choose the correct choice from the following:
A) $ 30000	B) $ 32500	C) $ 35120	D) $ 41520	E) $ 25460
<gadget id="calculator">5 * 10_000</gadget>
<output>50_000</output>

<gadget id="calculator">50_000 / 100</gadget>
<output>500</output>

<gadget id="calculator">4 * 10_000</gadget>
<output>40_000</output>

<gadget id="calculator">40_000 / 100</gadget>
<output>400</output>

<gadget id="calculator">500 - 400</gadget>
<output>100</output>

<gadget id="calculator">31_100 + 100</gadget>
<output>31_200</output>

<gadget id="calculator">4 / 100</gadget>
<output>1/25 = around 0.04</output>

<gadget id="calculator">1 - (1/25)</gadget>
<output>24/25 = around 0.96</output>

<gadget id="calculator">31_200 / (24/25)</gadget>
<output>32_500</output>

<result>B</result>
a salesman commission is 5 % on all sales upto $ 10000 and 4 % on all sales exceeding this. he remits $ 31100 to his parent company after deducting his commission. find the total sales?
divide(add(31100, subtract(divide(multiply(5, 10000), const_100), divide(multiply(4, 10000), const_100))), subtract(const_1, divide(4, const_100)))
let his total sales be x total sales - commission = $ 31100 x - [ ( 5 % of 10000 ) + 4 % of ( x - 10000 ) ] = 31100 x - 500 - ( x - 10000 ) / 25 = 31100 x = 32500 answer is b