cubic inches vs. head flow vs. rpm

with a given desired result in mind, how do you determine the combination of the above? if the cubic inches are too small for the head flow or the head flow is too much for the cubic inches, then the rpm goes up. so how do you find the sweet spot where the planets align and the car never gasps for air or has it's tail twisted so tight that the oil pan becomes a scrap metal bucket.
no particular combination in mind just a brain teaser to sit and figure out. my guess is that experience has a lot to do with it and I hope those that have will answer without giving away hard earned secrets. just point grasshopper to the path of enlightenment. thinking that's enough kombucha for tonite.

Read the yellow highlighted areas.

image.png