Are the girls already a bonded pair that you are going to split up or are they currently two singles?
How old are they?
Are they from a reputable rescue (ie wood green)? This is important due to quarantine needs.
If they are a bonded pair, then they should stay together, with the boys either side of them (so three cages together), while the boys await their neutering.
You must make sure the boys cages are secure as they may try to escape and get in with the girls. No hides next to the edge, make the cages two grids high or add lids (determined boars have been known to climb or jump to get in with girls).
If the girls are singles and you don’t intend to bond them while the boys wait their neutering, then you will have four cages but it won’t matter which two are side by side at this point - it’s just important that no piggy is left without side by side interaction. Again, make sure the boys cages are secure.