What value of x would make these pentagons similar?

Side A= 21
Side B= 3x-2
Side A'= 15
Side B'= 2x+1

Just set up the proportion

(3x-2)/21 = (2+1)/15
cross-multiply and solve for x (I got x=17)