Triangles ABC and DEF are similar, with vertices A, B, C corresponding to D, E, F, respectively. If ∠B=(2x−10)∘ and ∠E=(x+20)∘, what is the value of x?
10
20
30
40