IEMATICS Problem 7

If anybody solved IEMATICS7, can you please explain it to me?