Two sides of a triangle are 12 cm and 14 cm. The perimeter of the triangle is 36 cm. What is the third side?