For section 1245, you can only recapture the lesser of the gain or depreciation. Any excess will be section 1231 gain. From your Qs, only the gain $6000 can be fully recaptured, nothing is transferred to section 1231. I’m also studying for Reg and I hope I explained this better