[0.85x-(x-45)]*8=[(x-35)-(x-45)]*12
(0.85x-x+45)*8=(x-35-x+45)*12
6.8x-8x+360=120
360-120=8x-6.8x
240=1.2x
x=240/1.2
x=200