The law provides that in the divorce decree, the court will impose an obligation on one spouse to provide the…