Just substitute A = 4B into A + B = 180. So:
4B + B = 180
5B = 180
B = 36
Substitute B = 36 into A = 4B. So:
A = 4*36 = 144