Fragmentation happens like this..
Each intermediate node at network layer receives a packet, examines the header to see destination and makes new header.
So depends on MTU in next hop, a given packet can be further fragmented.
In your problem, first packet will have M=1 and second has M=0