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 200 pages , of which 80 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 200 - 80 - 20 = 100 pages only cost is 5 $ per page for the first time page is typed - 100 * 5 = 500 $ ; for 80 pages the cost is : first time 5 $ + 3 $ of the first revision - 80 * ( 5 + 3 ) = 640 $ ; 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 : 500 + 640 + 220 = 1360 $ . answer : a ."
add(add(multiply(200, 5), multiply(80, 3)), multiply(multiply(20, 3), const_2))