30/x+20/x-20=1

multiply both sides by x to get

30+20-20x=x
50=21x
x=50/21