Also, IMO, we do have to consider what is sufficient ammo. Again, take the Mustang (D/H models), 2x400 and 4x270 rpg doesn't sound like a lot, but if you average it out, you get at least 300 rpg (313 is the actual number). The F-82 could carry 413 rpg per the XP-82 restoration (400 in the ammo boxes, 13 in the feed chutes it seems). If that also applies to the P-51, you might get an extra 10+ rpg in the feed chutes. Granted, the F-82 being a heavy fighter/twin engine aircraft that weighed a bit less all up and normal TO than two P-51H Mustangs and having two engines of the same power as the H (for the Merlin powered versions), you do have a bit of a power reserve and weight to play around with (though not a ton).
For reference, the F-80 carried 300 rpg in it's ammo boxes for it's 6 .50s, and when the Grumman F8F Bearcat carried 4 .50s, it used 300 rpg (down .2 .50s and 100 rpg compared to the F4U Corsair and the F6F Hellcat)., but when it was upgunned to 4 20mm cannons, it carried 205 rpg.
Let's look at a hypothetical, looking at the P-51D/H as the basis (and NAA looked at this for the Australian P-51s per drgondog, one of our resident Mustang experts and authors). Let's replace 2 of the .50s with a 20mm Hispano Mk 2 or even Mk 5. 20x110mm Hispano per round weighs about twice as much as .50 BMG per round. And .50 BMG takes up about 2/3ds the space that 20mm does in an ammo box. If the Bearcat example is accurate, if you keep 400 rpg for the .50s, for the 20mms you can run either 200 rpg for the same weight or up to 300 rpg (probably less is a bit more sensible) in the same space.
Of course, if you keep 270 rpg for the .50s, the math formula is the same. Again, it depends on what you see as sufficient.
The XP-51F/Gs that were armed it also seems again per drgondog normally carried 250 or so rpg (planed alternative armament was, per same source, 4x20mm cannons with 125 rpg), though I've seen several other sources mention up to 440 rpg. Also, looking at the info sheet on a P-51D's ammo door, the outboard guns when carrying 4 .50s could run up to 500 rpg for the outboard pair.
And of course, there's the deal of what do you wanna shoot down? Is your plane mostly going to be use fighter vs fighter, or as a bomber/recon interceptor? The latter would usually favor cannon armament, but P-51s armed with .50s had little trouble dispatching German and Japanese heavy fighters (some of which were the size of--or sometimes converted from--medium bombers), and had no trouble sinking the BV238 flying boat by strafing it. And the BV238 was the largest plane the Germans managed to build in World War II.