Six boxes of apples each holding x apples are delivered to a market .18 of the apples are found to be bad and thrown away . The rest are packed away into 45 trays with six apples in each before being put on the shelves. How many apples are in each box