Complete the two-way frequency table below, which shows the relationship between students who enroll in advanced algebra and physics in a particular high school. From a sample of 40 students, it is found that 29 are taking algebra, 14 are taking physics, and 5 are enrolled in both. How many students are enrolled in either algebra or physics?
Algebra Not in Algebra Total
Physics 5 14
Not in Physics
Total 29 40
33
38
2
5