The two shapes shown below are similar.
Shape S has a perimeter of 12 cm.
Calculate the perimeter of shape T.