Worked out the wet adiabatic lapse rate formula a bit. Still need to inject the second formula and solve.