In both cases we will have non-organic molecules, so the correct option is B.
Usually, compounds of carbon are organic when we have bonds of hydrogen and carbon.
Now, what happens for pencil lead and diamonds?
Both of these are covalent structures of carbon (so these are only made of carbon) where small impurities may modify some of the covalent structures, but not enough to make them organic compounds. Basically, we could say that both diamonds and pencil lead are "a form of carbon" (which by itself is inorganic).
So the correct option is B.
If you want to learn more about carbon molecules, you can read:
https://brainly.com/question/19340575