\[3^{40} > 4^{30}\]
\[3^{40} = 3^{4 \cdot 10} = 81^{10}\]
\[4^{30} = 4^{3 \cdot 10} = 64^{10}\]
\[81^{10} > 64^{10}.\]