to be honest, acoustic foams for listening/mastering room are usually ****, sorry;
1) thin acoustic foam kills highs, barely mids, so you are stuck with even more exaggerated bass freqs
2) acoustic foam in general has no chance to trap the bass (material not "heavy" enough)
3) pyramids/waves are good only for breaking and diffusing the waves, they don't effectively dampen anything, since the material is "cut" so there is literally no "fat" layer to catch the low freq waves
if you really wanna use acoustic foam, then you will need "fat" ones (I have built dead-dry recording studio using the "chocolates" and it does work much more usefully than just "pyramids") to effectively "catch" wider frequency range (especially mid-bass) but don't put them everywhere, and even then, you'll still need "heavy" and "thick" bass traps in corners,
if you want decent acoustic treatment, then rather consider mineral wool (rock wool or whatever is it called) - we use "Ecophon" in our radio studios, advantage of that specific product is that the wool panels have already applied "cloth" finish, so it can be used without any additional "layers" on walls, ceilings etc. in just wooden frames "as it is" (yes it costs probably more than good acoustic foam, but it's worth it),
from my own experience, I think it's really impossible to treat room right, especially when on tight budget, so maybe just get used to how your speakers+room sound and consider that when mixing/mastering (figuring out optimal listening levels does a lot),
acoustic foam panels look cool and definitely make "some" difference, but don't get overly crazy into exact measuring and placement....