He got it. I only explain his last inequality.We draw two lines from (x,g(x)) to (y,g(y))and (x,h(x)) to (y,h(y))...easy to get answer.