Problem: an investor can sell her microtron stock for 36 $ per share and her dynaco stock for 68 $ per share , if she sells 300 shares altogether , some of each stock , at an average price per share of 40 $ , how many shares of dynaco stock has she sold ?
Rationale: "w 1 / w 2 = ( a 2 - aavg ) / ( aavg - a 1 ) = ( 68 - 40 ) / ( 40 - 36 ) = 28 / 4 = 7 / 1 = number of microtron stocks / number of dynaco stocks so for every 7 microtron stock , she sold 1 dynaco stock . so out of 300 total stocks , ( 1 / 7 ) th i . e . 300 / 8 = 37.5 must be dynaco stock . answer ( b )"
annotated_formula: divide(multiply(300, divide(40, subtract(68, 36))), divide(add(36, 68), subtract(68, 36)))