'Before they ate a snack' is the correct answer, it is the adverbial clause of time. A cannot be correct because that is an independent clause, and adverb clause has to be dependent. B isn't a clause at all.
Hey user
the answer to this is going to be
B