To determine the sample size to be inspected and the maximum allowed number of defect units, you use two AQL tables. The first table is used to find a letter code based on your lot size.