The first one is correct because the angle on the opposite side is the same, and the second one is correct too because it's the same points. So you can pick either or.
5x-50= 30-15x
20x= 80
x= 4 is the solution to this problem
The answer to this would be 4(w-4)