Answer:
B. He wondered how many people could trace their ancestry back to nobility.
Step-by-step explanation:
Trace has more than one meaning but only B. is grammatically correct and using trace how it's supposed to be used. (You can also read the sentences and see how A. is harder to read since trace could be used but isn't properly being used and C. doesn't make sense.)
Hope this helps some.