solve 12*m + (2m+1) + 45 = 862 for m