A company had opening inventory of $200,000. Sales and purchases during the period were of $400,000 and $80,000 respectively. What is the gross profit for the period if the closing inventory was worth $100,000?
(A) $20,000
(B) $120,000
(C) $220,000
(D) $320,000