m = h - w/8
To find the variable h, we want to isolate it (make it by itself). To do so, add w/8 to the other side of the equation:
m + w/8 = h
Therefore, h = m + w/8.