It really depends when in the 3 months the units were bought and sold. If they sold 151 before buying the 50 @ $12, then 1 of the units left at the end of the 3 months would have cost $12 while the others would have cost $10.
But I suspect the answer they want is $10.