WA IN Chef and Polygon Cakes || please help ||

please :pray: :pray: help where am i wrong ?

my sol:- https://www.codechef.com/viewsolution/37485391