what theorem on triangle inequality can be applied in the problem above?​