Let \( a, b, \) and \( c \) be nonnegative whole numbers such that \( a^2 + b^2 + c^2 = 9 \). Find the maximum value of 
\[ ab + bc + ca. \] Let's think step by step and output the final answer within \boxed{}.
user