A will states that John is to get 3 times as much money as Mary. The total amount they will receive is $1200. How much money will John and Mary receive?

J = 3M

J + M = 3M + M = 1200

Solve for Mary, then John.