I need help fast!!

The purpose of the ______ system is to prevent foreign substances from entering the body and to attack foreign substances that are in the body.

A.nervous

B.immune

C.excretory

D.endocrine