This system is J = 3*M - 3, (1) J + M = 57. (2) Or, if you want to write it in the standard form, J - 3M = -3, J + M = 57.