$\newcommand{\lcm}{\operatorname{lcm}}$
I saw this in the first Moscow Olympiad of Mathematics (1935), the equation was : $$\lcm(n,m,p)\times \gcd(m,n) \times \gcd(n,p)^2 = nmp \times \gcd(n,m,p)$$
My attempt :
I've multiplied both sides of the equation by $\frac{1}{\gcd(n,m,p)}$ to get this ( I don't know why i did ): $$\frac{\lcm(n,m,p)}{\gcd(n,m,p)}\times \gcd(m,n) \times \gcd(n,p)^2 = nmp$$ then I've multiplied both sides by $\gcd(n,m,p)$, I got this but I get stuck here actually: $$\frac{nmp\times \not{nmp}\times \gcd(m,n) \times \gcd(n,p)^2}{\gcd(n,m,p)}=\not{nmp}$$ Finally: $$\gcd(m,n)\times \gcd(n,p)^2\times nmp=\gcd(n,m,p).$$
HINT:$\newcommand{\lcm}{\operatorname{lcm}}$
Use the prime power decomposition. Let $\ell,$ $m$ and $n$ be your integers. We can write $$\begin{eqnarray*} \ell &=& p_1^{a_1}p_2^{a_2}\ldots p_k^{a_k} \\ \\ m &=& p_1^{b_1}p_2^{b_2}\ldots p_k^{b_k} \\ \\ n &=& p_1^{c_1}p_2^{c_2}\ldots p_k^{c_k} \end{eqnarray*}$$
where each of the $p_i$ are distinct primes and the $a_i$, $b_i$ and $c_i$ are non-negative integers. E.g.:
$$\begin{eqnarray*} \ell &=& 2^3 \times 3^0 \times 11^1 \\ \\ m &=& 2^0 \times 3^2 \times 11^3 \\ \\ n &=& 2^9 \times 3^2 \times 11^0 \end{eqnarray*}$$
Two nice peroperties are that
\begin{eqnarray*} \gcd(\ell,m,n) &=& p_1^{\min(a_1,b_1,c_1)}\ldots p_k^{\min(a_k,b_k,c_k)} \\ \\ \lcm(\ell,m,n) &=& p_1^{\max(a_1,b_1,c_1)}\ldots p_k^{\max(a_k,b_k,c_k)} \\ \\ \end{eqnarray*}
Similar statements fold for two numbers (ignore $n$ and all of the $c_i$).
Can you use these to help you solve the problem?