Minimum size of generating set of direct product of two groups may be strictly less than sum of minimum size of generating set of each factor

Statement
It is possible to have finite groups $$A,B$$ such that the minimum size of generating set for $$A \times B$$ is strictly less than the sum of the minimum size of generating set for $$A$$ and for $$B$$.

Related facts

 * Minimum size of generating set of direct product of two groups is bounded by sum of minimum size of generating set of each factor
 * Minimum size of generating set of direct product of groups of coprime order equals maximum of minimum size of generating set of each factor