There is no general recipe here. The question asks for your understanding of the temporal logic formulas, i.e., you need to read and understand them, and think about their potential difference. If they are different, you can find an example to distinguish them, otherwise, there is a way to rewrite one into the other.

As discussed in various threads about the same topics, you may think about what the formulas demand for the current point of time, and what they may ask for next points of time by unrolling the formulas using the recursive definitions of the temporal operators. That may, however, become difficult is therefore not a general recipe.

In many cases the classic difference shown by the example on slide 42 of the temporal logic chapter is hidden, as in the case above. Slide 42 shows that EGFp and EGEFp are different, and by negating both, you can use the same example to show that AFG!p and AFAG!p are different. Then you are almost there.