* A) The ghost says he is father. This is a simple sentence. It has one independent clause (a complete thought) with a subject ("the ghost") and a verb ("says").
* B) Hamlet conflicted brooding and resentful when sees his mother. This is a complex sentence. It has one independent clause ("Hamlet conflicted brooding and resentful") and one dependent clause ("when sees his mother"). The dependent clause begins with the conjunction "when" and modifies the main clause.
Therefore, the answer is B.