Sodium chloride contains sodium and chlorine in its structure. Both are elemens, which means that sodium chloride is a compound.
It is not a mixture since it is not made of 2 different substance. It is a substance made of 2 elements, which means it is a compound.
The correct answer is B) compound.