Troubled pop star Britney Spears has agreed to hand Kevin Federline a massive $19 million (GBP10 million) divorce settlement, according to reports. Four months after splitting, the pair have reached an agreement over joint custody of their two sons, 18-month-old Sean Preston and JAYDEN JAMES, six months - and a financial deal which will make Federline a wealthy man. According to British newspaper The Sun, Spears' was driven to finalise the divorce during her spell in rehab to treat substance abuse. Under the deal Federline will get a $2 million (GBP1.1 million) lump sum plus half Spears' earnings during their marriage and half the proceeds from the sale of their Malibu, California home. A source tells the newspaper, "Everything changed when Britney went into rehab. She and Kevin started talking again and he's been a tower of strength for her. "Her time in rehab has given Britney a lot of time to think, and has shown her Kevin loves his kids and is a good dad."