Calculate ending inventory cost of goods sold gross profit and gross profit rate under periodic method; compare results.(LO 2 3) P65B?You are provided with the following information for Perkins Inc. for the month ended October 31 2017. Perkins uses a periodic method for inventory. Unit Cost or Date Description Units Selling PriceOctober 1 Beginning inventory 60 $25October 9 Purchase 120 26October 11 Sale 100 35October 17 Purchase 70 27October 22 Sale 60 40October 25 Purchase 80 28October 29 Sale 110 40Instructions(a)(iii) Gross profit:LIFO $3 050FIFO $3 230Average $3 141 (a) Calculate (i) ending inventory (ii) cost of goods sold (iii) gross profit and(iv) gross profit rate under each of the following methods. (1) LIFO. (2) FIFO. (3) Average-cost. (Round average cost per unit to 3 decimal places.)(b) Compare results for the three cost flow assumptions.