An isosceles triangle has two equal sides if two of the sides are 5 inches and 2 inches how long is the perimeter ?