A solid right pyramid has a square base with an edge length of [tex]\(x \, \text{cm}\)[/tex] and a height of [tex]\(y \, \text{cm}\)[/tex].
Which expression represents the volume of the pyramid?
A. [tex]\(\frac{1}{3} x y \, \text{cm}^3\)[/tex]
B. [tex]\(\frac{1}{3} x^2 y \, \text{cm}^3\)[/tex]
C. [tex]\(\frac{1}{2} x y^2 \, \text{cm}^3\)[/tex]
D. [tex]\(\frac{1}{2} x^2 y \, \text{cm}^3\)[/tex]