How does the sentence end?

The teacher flunked Craig in chemistry while Joseph got a good grade because
Joseph was a good at chemistry.