Solving marriage problems

Solving marriage problems