x+50+70+4x=180
combine like terms
50+70=120
subtract 120 by both sides
x+4x=60
5x=60
divide by 5
x=12
4x12=48
B=48
12+50=62
48+62=110
110+70=180
A=62