What role does the lung play in hydrostatic pressure changes seen here? What is the effect pulmonary artery pressure and resultant changes to the right side of the heart?

What role does the lung play in hydrostatic pressure changes seen here? What is the effect pulmonary artery pressure and resultant changes to the right side of the heart?