Identify the number of independent and subordinate clauses in the following group of words.

Jean prepared for rain by packing an umbrella, but the sun ended up coming out

A.
one independent clause only

B.
one subordinate clause only

C.
two independent clauses

D.
one independent clause and one subordinate clause