\[A = 27^{2} - 8^{2} =\]
\[= (27 - 8)(27 + 8) = 19 \cdot 35;\]
\[B = (27 - 8)^{2} = 19^{2} = 19 \cdot 19;\]
\[A > B.\]