Given constants \(c\), \(d\), \(m\), and \(n\) such that \(x^2+mx+c\) has factors of \((x+2)\) and \((x+4)\) and \(x^2+nx+d\) has factors \((x+3)\) and \((x+7)\), what is \(mn\) ?