The positive integers $a$, $b$, $c$ and $d$ satisfy the equation $$(ad-bc)^2=(a+b)(c+d).$$ Show that there are positive integers $x$, $y$ and $z$, with $x$ and $y$ coprime, such that $$a+b=x^2z~\text{ and }~c+d=y^2z.$$
I tried using the fact that $$(a+b)(c+d)=\text{lcm}(a+b,c+d)\gcd(a+b,c+d)$$ and by letting $m=\text{lcm}(a+b,c+d)$ and $z=\gcd(a+b,c+d)$, I got $$a+b=z\Big(\frac{a+b}{z}\Big)=z(a+b)\Big(\frac{m}{(ad-bc)^2}\Big)=z\Big(\frac{k(a+b)^2}{(ad-bc)^2}\Big),$$ since $m=k(a+b)$ for some integer $k$. However, I hit a road block in terms of simplifying further. Any help is appreciated! Thank you!