Ta có:
\(\frac{3}{x+y}=\frac{2}{y+z}=\frac{1}{z+x}\Rightarrow\frac{x+y}{3}=\frac{y+z}{2}=\frac{z+x}{1}=\frac{x+y+y+z+z+x}{3+2+1}=\frac{2\left(x+y+z\right)}{6}=\frac{x+y+z}{3}\)
\(\frac{x+y+z}{3}=\frac{x+y}{3}\Rightarrow z=0\)
Thay vào P, ta có:
\(P=\frac{2x+2y+2019z}{x+y-2020z}=\frac{2x+2y}{x+y}=\frac{2\left(x+y\right)}{x+y}=2\)
Vậy P=2