To find perimeter of a triangle