stable matching problem

sm  

stable matching