rates for having a manuscript typed at a certain typing service are $ 5 per page for the first time a page is typed and $ 3 per page each time a page is revised . if a certain manuscript has 100 pages , of which 30 were revised only once , 20 were revised twice , and the rest required no revisions , what was the total cost of having the manuscript typed ?
"for 100 - 30 - 20 = 50 pages only cost is 5 $ per page for the first time page is typed - 50 * 5 = 250 $ ; for 30 pages the cost is : first time 5 $ + 3 $ of the first revision - 30 * ( 5 + 3 ) = 240 $ ; for 20 pages the cost is : first time 5 $ + 3 $ of the first revision + 3 $ of the second revision - 20 ( 5 + 3 + 3 ) = 220 $ ; total : 250 + 240 + 220 = 710 $ . answer : e ."
add(add(multiply(100, 5), multiply(30, 3)), multiply(multiply(20, 3), const_2))