Judging by the question I noticed that the two both share x^3 in common. You can divide x^4 by x^3 and get x as a result, and x^3 can still divide into itself.
P>4 t>4 r>2 for the 4th picture 1 matches with #2 2 matches with #1 4 matches with #3 3 matches with #4 for the 5th picture 3 matches with #1 2 matches with #2 4 matches with #3 1 matches with #4