how to determine triplets of side lengths that can form a triangle 12cm,14cm,18cm and 2in,3in,9in and6m,8m,10m