The distance between the longest and shortest sides of parallelogram are respectively 12 cm and 16 cm. If the longest side measures 24 cm find the perimeter of the parallelogram