let $\displaystyle a$ and $\displaystyle b$ be your dimensions
$\displaystyle \left\{\begin{matrix} a+b=336\\ a\times b =14112 \end{matrix}\right.$