In a class of 45 students, 28 offer chemistry and 25 offer Biology. If each…