What you're saying doesn't make any sense. The WIP and the COGS aren't directly related. That is, you wouldn't be making an entry that encompassed both of those things. And if these were the same items/jobs, that number would also have to be the same. If one is 10K and the other is 12K, then that's not the same set of items/jobs and not at all related.
You need to study the flow of accounts more. ALL of you new manufacturing accounts are debit accounts, so you will always debit INTO them and credit OUT OF them.
It starts with materials. You debit purchases into, and credit out what goes into production.
WIP comes next. That's where you collect costs, which consist of direct material, direct labor and overhead. You debit these costs into the account, and credit out when the product/job is finished.
Finished goods comes last, of the three inventory accounts. You debit into what you have finished, and credit out when it is sold. When you credit out of finished goods when something is sold, you debit into COGS.
So the 10,000 that is finished comes out of WIP and goes into finished goods. (Your entry is backwards.) Then when it's sold, it comes out of finished goods and goes into COGS. Since you have 2 different dollar amounts, these are two different things and are separate items. So your senario doesn't really work to begin with.