I tried with the absolute value properties to solve it but I couldn't find it. Let $ {\mathrm{(}}{X}{\mathrm{,}}\mathit{\rho}{\mathrm{)}} $ be a metric space :
a) for $ \mathrm{\forall}\hspace{0.33em}{x}{\mathrm{,}}{y}{\mathrm{,}}{z} $ show that :$ \left|{\mathit{\rho}{\mathrm{(}}{x}{\mathrm{,}}{z}{\mathrm{)}}\mathrm{{-}}\mathit{\rho}{\mathrm{(}}{y}{\mathrm{,}}{z}{\mathrm{)}}}\right|\mathrm{\leq}\mathit{\rho}{\mathrm{(}}{x}{\mathrm{,}}{y}{\mathrm{)}} $
b)for $ \mathrm{\forall}\hspace{0.33em}{x}{\mathrm{,}}{y}{\mathrm{,}}{z}{\mathrm{,}}{w} $ show that: $ \left|{\mathit{\rho}{\mathrm{(}}{x}{\mathrm{,}}{y}{\mathrm{)}}\mathrm{{-}}\mathit{\rho}{\mathrm{(}}{z}{\mathrm{,}}{w}{\mathrm{)}}}\right|\mathrm{\leq}\mathit{\rho}{\mathrm{(}}{x}{\mathrm{,}}{z}{\mathrm{)}}\mathrm{{+}}\mathit{\rho}{\mathrm{(}}{y}{\mathrm{,}}{w}{\mathrm{)}} $