Question: how to transfer apps from one iphone to the other?
Answer: Connect your previous iPhone to a Wi-Fi network.
Go to "Settings" > [your name] > "iCloud" > "iCloud Backup".
Turn on "iCloud Backup", click "Back Up Now", and wait for the process to finish.