Let's say a pipe runs along the seafloor with velocity $v_1$, then exits at the surface with velocity $v_2$. I want to use Bernoulli's equation to find $v_2$, but I am confused about the pressures in the problem. I know Bernoulli's equation is
$P_1 + \frac{1}{2} \rho v_1^2 + \rho g y_1 = P_2 + \frac{1}{2} \rho v_2^2 + \rho g y_2$
If I solve for $v_2$, I get $P_1 - P_2$ on the left hand side, as well as $\rho g (y_1 - y_2)$, but aren't these the same thing since the fluid pressure is equal to $\rho g h$? Would I just have 2 factors of $P_1 - P_2$ that add together then?