Step 1: Understanding the Concept
Let the first number be \(x\) and the second be \(3-x\), both positive. We maximise \(P=x(3-x)^2\).
Step 2: Derivative
\(P'=(3-x)^2-2x(3-x)=(3-x)(3-3x)\). Setting \(P'=0\) gives \(x=1\) (or \(x=3\), which gives \(P=0\)).
Step 3: Second derivative test
\(P'=3x^2-12x+9\) so \(P''=6x-12\), which is \(-6<0\) at \(x=1\). So \(x=1\) is a maximum.
Step 4: Result
The numbers are \(1\) and \(2\), and \(P=1\times2^2=4\), the second option.
Final Answer:
The maximum value of the product is 4.
\[ \boxed{\text{(B) }4} \]