Alaina gained m dollars in the stock market two weeks ago. Last week, she gained twice as much. This week, she lost $50 more than she gained the first week. How do you write an algebraic expression for her total gain or loss?