The formula for the number of students offering only one subject is given as:
n(Biology OR History OR Mathematics) =n(Biology) + n(History) +n(Mathematics) - n(History and Biology) - n(History and Mathematics) - n(Biology and Mathematics) + n(Biology and History and Mathematics)