Kim Kardashianis feeling “very relieved” that she andKanye Westhave agreed to the terms of their divorce, a source tells PEOPLE.

A source tells PEOPLE that theKardashiansstar, 42, “didn’t want the divorce to go to trial.”

They add, “[Kim and Kanye] had several initial disagreements that they were now able to agree on. Kanye ended up agreeing to most of the things that he opposed in the past.”

The source notes that Kardashian is optimistic that she and the rapper, 45, will be able to co-parent their children peacefully.

“Although Kim and Kanye share custody [of the kids], Kim is the primary caregiver,” the source says. “They agreed that Kanye needs to speak to Kim in private about any complaints and not go public with them. She wants the kids to be protected. Kim hopes the co-parenting will be a bit easier from now on.”

West and Kardashian share four children:North, 9,Saint, 6,Chicago, 4, andPsalm, 3.

Nathan Congleton/NBC/Getty; Taylor Hill/WireImage

TODAY – Pictured: Kim Kardashian on Tuesday June 21, 2022 – (Photo by: Nathan Congleton/NBC via Getty Images); NEW YORK, NEW YORK - OCTOBER 24: Kanye West attends Fashion Group International’s 2019 Night of Stars at Cipriani Wall Street on October 24, 2019 in New York City. (Photo by Taylor Hill/WireImage)

A representative for West did not immediately respond to PEOPLE’s request for comment.

Under their divorce settlement, West will be required to pay Kardashian $200,000 a month in child support. He will also be responsible for half of the children’s medical, educational, and security expenses.

Both Kardashian and West waived spousal support.

RELATED VIDEO:Kim KardashianandKanye WestFinalize Divorce, Rapper Must Pay $200K Per Month in Child Support

The couple’s assets, including their property, will be divided based upon their prenup.

Kardashian and West started dating in 2012 andwedin May 2014. Their marriage landed in crisis at the height of West’s public outbursts in 2020 after he launched acontroversial bid for president of the United Statesanddivulged deeply personal detailsabout his family and marriage on the campaign trail and on Twitter.

Never miss a story — sign up forPEOPLE’s free daily newsletterto stay up-to-date on the best of what PEOPLE has to offer, from juicy celebrity news to compelling human interest stories.

At the time, Kardashian addressed hisbipolar disorder diagnosisin arare public statement, asking fans for “compassion” and acknowledging their “complicated and painful” situation.

Then, Kardashianfiled for divorcefrom West in February 2021 after nearly seven years of marriage. Months later, in December, she requested to bedeclared legally single. She also asked to separate issues of child custody and property from her marital status and to have her maiden name restored.

source: people.com