To calculate the number of packages, divide the total number of tennis balls by the number of tennis balls in each package.