b. Debit Work in Process--Dept. B; credit Work in Process--Dept. A.