Find the ratio of the common sides:
20/50 = 0.4
24/60 =0.4
The unknown side is 0.4 times the known side.
AC = 30 x 0.4 = 12