rates for having a manuscript typed at a certain typing service are $ 6 per page for the first time a page is typed and $ 4 per page each time a page is revised. if a certain manuscript has 100 pages, of which 40 were revised only once, 10 were revised twice, and the rest required no revisions, what was the total cost of having the manuscript typed?  Select: A) $ 850 B) $ 840 C) $ 860 D) $ 870 E) $ 880
<gadget id="calculator">100 * 6</gadget>
<output>600</output>

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

<gadget id="calculator">600 + 160</gadget>
<output>760</output>

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

<gadget id="calculator">40 * 2</gadget>
<output>80</output>

<gadget id="calculator">760 + 80</gadget>
<output>840</output>

<result>B</result>
rates for having a manuscript typed at a certain typing service are $ 6 per page for the first time a page is typed and $ 4 per page each time a page is revised. if a certain manuscript has 100 pages, of which 40 were revised only once, 10 were revised twice, and the rest required no revisions, what was the total cost of having the manuscript typed?
add(add(multiply(100, 6), multiply(40, 4)), multiply(multiply(10, 4), const_2))
"50 pages typed 1 x 40 pages typed 2 x ( original + one revision ) 10 pages typed 3 x ( original + two revisions ) 50 ( 6 ) + 40 ( 6 + 4 ) + 10 ( 6 + 4 + 4 ) = 300 + 400 + 140 = 840 answer - b"