Please watch this video to solve this question efficiently and clearly.
Direct TimeStamp of Detailed Video Solution
3 and 5. The 1000 byte packet from A can go to $X$ without problems, as the MTU on that link is larger than 1000. X has to fragment the packet into fragments of at most 500 bytes each. Since each fragment gets its own 20-byte IP header, the 1000 bytes from A do not fit in two 500-byte fragments, but need three, of sizes 500,500 , and 40 bytes. Each of these fragments arrive at $Y$, which cannot send the 500-byte fragments over the 492 byte MTU of the next link. So those fragments are fragmented further, leading to a total of five fragments arriving at Y.