At the Independence Day parade, the city mayor gave a small flag to each person in attendance. The mayor had 24 boxes of flags and each box contained the same number of flags. If there were 1,536 people in attendance at the parade and the mayor distributed all the flags with no flags left over, how many flags were in each box?