Volume of the pyramid:

Perimeter of the cross-section:


Area of the cross-section:


First derivative test:

Then the height of the cross-section/pyramid is

The volume of the pyramid that maximizes the cross-sectional area
is

3:2:1
r:b:9
To get to 9 from 1, you are multiplying by 9.
Therefore, multiply each number by 9.
27:18:9
So, 27 red and 18 blue.
Hope this helps!!
The practice of tacking 9/10 of a cent on the end of a gas price goes back to when gas cost only pennies per gallon and was a tax imposed by state and federal governments. Gas stations added the fraction of a cent on the end of the price instead of rounding up the price.