Which of the following sentences properly uses a semicolon with a conjunctive adverb?

a) Mateo decided to go out to eat with his friends instead of studying, consequently; he failed his Language Arts exam.
b) Mateo decided to go out to eat with his friends instead of studying; consequently; he failed his Language Arts exam.
c) Mateo decided to go out to eat; with his friends instead of studying, consequently; he failed; his Language Arts exam.
d) Mateo decided to go out to eat with his friends instead of studying; consequently, he failed his Language Arts exam.

d) Mateo decided to go out to eat with his friends instead of studying; consequently, he failed his Language Arts exam.