Can someone please just give me a formula for solving this? Thank you.

When baking a cake, you have a choice of the following pans: a round cake pan that is 2 inches deep and has a 7 inch diameter.

a 6 inch x9 inch rectangular cake pan that is 2 inches deep.

A. which of these pans has the larger value? Justify your answer