Cost of beginning work in process inventory + Costs added to production = Cost of ending working in process inventory + Cost of units transferred out$30,000 + $345,000 = Cost of ending working in process inventory + $346,000Cost of ending working in process inventory = $30,000 + $345,000 − $346,000