A swap transplant involves an exchange of organs between families as the donor cannot give the organ to their relative because of blood-group mismatch.
When doctors found these two compatible kidneys, they went through the legal process. After they received the approvals, they went ahead with the surgery.