I'm beginning to study metric spaces and I see this question
Consider $A$ and $B$ bounded and non-empty subsets of $M$, where $M$ is a metric space.
Show that $\operatorname{diam}(A\cup B)\le \operatorname{diam}(A)+\operatorname{diam}(B)+d(A,B)$.
Does anyone know how can I do?
For any two points $a,b\in A\cup B$, there are three cases: