Two middle names

I’ve seen a lot of people considering two middle names for their kids and I’ve never seen that before.

How does it work for filling out paper work?

If they ask for a middle initial, do you use just one middle name? Is it the first one or does it not matter?