\(B=\left(ab+bc+ca\right)\left(\dfrac{ab+bc+ca}{abc}\right)-abc\left(\dfrac{a^2b^2+b^2c^2+c^2a^2}{a^2b^2c^2}\right)\)
\(=\dfrac{\left(ab+bc+ca\right)^2-\left(a^2b^2+b^2c^2+c^2a^2\right)}{abc}\)
\(=\dfrac{a^2b^2+b^2c^2+c^2a^2+2abc\left(a+b+c\right)-\left(a^2b^2+b^2c^2+c^2a^2\right)}{abc}\)
\(=2\left(a+b+c\right)\)