Determine the value x needs to be to make the triangles similar

If both triangles are similar, it means that the ratio of the corresponding sides is proportional. It also means that the corresponding angles are congruent
By comparing both triangles,
2x - 10 = 30
2x = 30 + 10
2x = 40
x = 40/2
x = 20