P=\(\frac{\left(a+c\right)\left(a+d\right)\left(b+c\right)\left(b+d\right)}{\left(a+b+c+d\right)^2}\)=\(\frac{\left(a^2+ad+ac+cd\right)\left(b^2+bd+bc+cd\right)}{\left(a+b+c+d\right)^2}\)
=\(\frac{\left(a^2+ac+ad+ab\right)\left(b^2+bc+bd+ab\right)}{\left(a+b+c+d\right)^2}\) (do ab=cd)
=\(\frac{a\left(a+b+c+d\right)b\left(a+b+c+d\right)}{\left(a+b+c+d\right)^2}\)
=\(\frac{ab\left(a+b+c+d\right)^2}{\left(a+b+c+d\right)^2}\)=ab