How does the sentence end? See options at the end

The doctor was able to diagnose the reason for the man's cough, but not his headache. The reason for the

A. cough was clear. B. headache was clear.
A.