please help me- how does rock layer h compare to rock layer m?

Answer: Rock layer H is much newer than rock layer M. If all layers were perfectly stacked, the lower layer would be older. However, since we can see Layer H was probably formed by a crack that was filled with magma, Layer H will be newer.
Hope this helps :)