Let $M$ be a set with three elements: $a$, $b$, and $c$. Define $D\colon M\times M\to[0,\infty)$ so that $D(x, x) = 0$ for all $x$, $D(x, y) = D(y, x)$ for $x \ne y$. Say $D(a, b) = r$, $D(a, c) = s$, $D(b, c) = t$, and $r \le s \le t$.
Prove that $D$ makes $M$ a metric space iff $t \le r + s$.
I have no idea on how to begin this proof.