Solve for z Ag((3k)/2-z)=mgz