capital loss carryover when changing filing status

Last year we filed jointly.  This year separately.  We had a capital loss carryover.  Can I apply it however I want between our two returns?    Obviously, I would like to apply it to the person who had the capital gain.  

 

To put some example numbers to it, say our carryover loss is -10.  Person A has a gain of 20, person B a gain of 2.  I would like to apply the entire loss carryover to person A.  Possible?