It's gonna be inches/centimeters.
An average pencil when new would be around 15 centimetres long.
I would use a centimetre.
In the metric system, centimeters (cm) would be the best unit to use.
Centimeters/inchesThe most appropriate metric unit for the purpose of measuring the length of a pencil would be centimetres.
You can use millimeters.