Solve using substitution.
M = 5p + 8
M = -10p + 3