The reason why B is the answer is because they are putting something about the person they are talking about between commas. Saying "the boy with the blue shirt opened the door," would ake no sense. You should state something about a person using commas.