* Earth's Gravity is Constant: Earth exerts the same gravitational force on all objects, regardless of their size or mass.
* What Matters is Mass: The force of gravity depends on the masses of the two objects and the distance between them.
* The Pencil's Pull: While a pencil has a very small mass, it still exerts a gravitational pull on the Earth. However, this force is so tiny that it's completely negligible.
So, to answer your question: Earth exerts a greater gravitational pull on every object sitting on the ground, including the pencil. The pencil exerts a tiny pull back on Earth, but it's too small to notice.