Hello Team,
I need your help with a logic to merge muliple PDF files based on a condition and below is the scenario.

I have a list of PDF files each 1 page report, a Total of 200 PDF files in a single Folder.
There are few PDF which report content is extended to next file or next file, which means that all PDF are not for single report. There are scenarios where merging 2 or 3 PDF together will make a single client file. And that is where I need help with logic to apply.
These are PDF files

In Power Automate Desktop, I need a logic by which I should be able to Merge
1) File 5 and 6 PDF
2) File 9, 10 and 11 PDF
Currently I am using Files in Folder loop, and able to navigate to each file 1 by 1, but I am unable to find a logic by where In that file folder loop, I can merge current and next file as well.
Power automate provide a feature to merge 2 files, but how to implement that logic is a key?

Kindly help, if you can.