rates for having a manuscript typed at a certain typing service are $ 10 per page for the first time a page is typed and $ 6 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 ?
"for 100 - 40 - 10 = 50 pages only cost is 10 $ per page for the first time page is typed - 50 * 10 = 500 $ ; for 40 pages the cost is : first time 5 $ + 6 $ of the first revision - 40 * ( 5 + 6 ) = 440 $ ; for 10 pages the cost is : first time 5 $ + 6 $ of the first revision + 6 $ of the second revision - 10 ( 5 + 6 + 6 ) = 170 $ ; total : 500 + 440 + 170 = 1110 $ . answer : d ."
add(add(multiply(100, 10), multiply(40, const_4.0)), multiply(multiply(10, 6), const_2))