Please provide the formulas need to solve below. What is the formula when taking

Please provide the formulas need to solve below. What is the formula when taking into account gross method?
Company used the periodic inventory system for purchase & sales of merchandise. Discount terms for both purchase & sales are, FOB Destination, 2/10, n30 and the gross method is used.

"Get 15% discount on your first 3 orders with us"
Use the following coupon
"FIRST15"

Order Now