Choose the sentence that contains no run-ons, choose from the following.

A. The professor had an idea that his students would not attend, he decided to cancel class.

B. The professor had an idea that his students would not attend and decided to cancel class.

B. The professor had an idea that his students would not attend and decided to cancel class.