I don't believe there is any way to do that. Especially since (I assume) the iPhones are using different Apple IDs. Items acquired with one Apple ID are forever tied to that Apple ID and cannot be merged or transferred to another Apple ID unless you change it according to:
Change your Apple ID - Apple Support
But I don't think that will help you any.
There might be a way to get the photos by importing them to a computer, then copying them to a thumb drive, and uploading them to your personal Apple ID using iCloud Photo Library. But that is about it. Certainly not any purchases or apps.
Transfer photos and videos from your iPhone, iPad, or iPod touch - Apple Support
Set up and use iCloud Photos - Apple Support