The length of equal sides of an isosceles triangle is 25 cm. If the length of the third side is 3 cm, what is the perimeter of the triangle?