Problem: rates for having a manuscript typed at a certain typing service are $ 5 per page for the first time a page is typed and $ 2 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 ?
Rationale: "for 100 - 40 - 10 = 50 pages only cost is 5 $ per page for the first time page is typed - 50 * 5 = 250 $ ; for 40 pages the cost is : first time 5 $ + 2 $ of the first revision - 40 * ( 5 + 2 ) = 280 $ ; for 10 pages the cost is : first time 5 $ + 2 $ of the first revision + 2 $ of the second revision - 10 ( 5 + 2 + 2 ) = 90 $ ; total : 250 + 280 + 90 = 620 $ . answer : b ."
annotated_formula: add(add(multiply(100, 5), multiply(40, 2)), multiply(multiply(10, 2), const_2))