Step-by-step explanation:
Assuming that the 350 taking history and the 300 taking math each includes the 270 taking both history and math, then:
N(H or M) = N(H) + N(M) − N(H and M)
N = 350 + 300 − 270
N = 380
There are 380 first-year students taking history or mathematics.