Problem: 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 ?
Rationale: "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"
annotated_formula: add(add(multiply(100, 6), multiply(40, 4)), multiply(multiply(10, 4), const_2))