Last month, Alex spent 40% of his salary on a laptop. He then spent 30% of it on his bills and saved the remaining $1,200. What was his salary?