If two triangles are similar then ratio of the perimeters of the triangles is equal to the ratio of their corresponding sides.
Let the required side be 'x'.
Following this theorem, just plug the values.
30/20 = 12/x
3/2 = 12/x
x = 24/3
x = 8
So required value of the corresponding side is 8 cm.