The equation:
[tex](x-10)+40+(x-20)+3x=360\\\\(x+x+3x)+(-10+40-20)=360\\\\5x+10=360\ \ \ \ |-10\\\\5x=350\ \ \ \ |:5\\\\x=70[/tex]