PersonX risks PersonY's life
to make sure their friend is not hur to get their friend to the hospital to adopt the dog they found to apologize to PersonY to promise that shall not happen again to make sure PersonY is okay. to take PersonY to the hospital.