The correct answer is B.) The sixth grade students studied the rules before their test.
Remember: "Their" is possessive, meaning the subject belongs to someone, "there" refers to a location, and "they're" is a combination of the words "they" and "are".
Hope this helps!