There are a couple of ways to write these equations: 1) Write the equations which happen in the lung capillaries, then write the equations which happen in the systemic tissue.  2) Write the two equations as continuums with lung capillaries on one side and systemic capillaries on the other side.