Answer and Explanation:
The computation is shown below:
Particulars Gross profit Cost of merchandise sold Ending inventory
a. FIFO $10 $35 $73
($45 - $35) ($108 - $35)
It takes the first cost per unit
b. LIFO $8 $37 $71
($45 - $37) ($108 - $37)
It takes the last cost per unit
c. Average cost $9 $36 $72
($45 - $36) ($45 - $36)
It takes the average cost per unit