Mr. Edwards surveyed a total of 80 students in his first three classes in order to determine the numbers of students that have pets. Out of the 30 students in his 1st period class, 12 have no pets. Eighteen of the 27 students in his 2nd period class do have pets. Fourteen of the students in his 3rd period class do have pets. Construct a two-way table summarizing the data. Write the answers as whole numbers.