Complex sentence: As a joke, she says she wants to keep him as a pet, and to her surprise, the young man agrees.
Split into simpler sentences: As a joke, she says she wants to keep him as a pet. To her surprise, the young man agrees.