Marlene and Leony have $365 altogether. If Leony spends $100, she will have $5 less than Marlene. How much money does Marlene have?

L = 365 - M

L - 100 = M + 5

Substitute 365-M for L in the second equation and solve for M.