Let be $d:\mathbb{R}\times\mathbb{R}\to \mathbb{R}$ a function such that $$a)d(x,y)=0\iff x=y$$ $$b)d(x,z)\leq d(x,y)+d(z,y)$$
Prove that $d$ is a metric.
First, let be $z=x$, then $$0\leq d(x,y)+d(x,y)\to d(x,y)\geq 0$$ So, $d(x,y)\geq 0$. Second, let be $x=y$, then $$d(x,z)\leq d(y,x)+d(z,x)=d(z,x)$$ But, I don't know how prove that $d(z,x)\leq d(x,z)$. And the finally condition for metric is by hypothesis.