8m-27=17m+45

Put the "m" terms on one side and the constants on the other.

9m = -72
m = -8