Is this from a specific passage? A word that could work here is "Finally," or "At the very last moment".
The answer would be <span>A)James had a great time at the museum; but he left his hat there because the semicolon links the clauses in the compound sentence.
</span>
I believe that the answer to your question would be A and B. I hope this is helpful.
Answer:
maybe C have a good day :D