(8x-50)/3=(10x+40)/5+10
5(8x-50)=3(10x+40)+150
40x-250=30x+120+150
40x-250=30x+270
40x-30x=270+250
10x=520
x=52