The firm had a beginning inventory of 50 units with a unit cost of $10.Purchases during the year were as follows: March-50 units with a unit cost of $12;July-60 units with a unit cost of $15.If the average cost method is used,the value of the ending inventory of 45 units is
A) $675.
B) $563.
C) $450.
D) $555.