The length of the two sides of a right triangle containing the right angle differ by 2 cm. If the area of the triangle is 24 c m2 , find the perimeter of the triangle.