Finding the length width and perimeter of a triangle