You could use either centimeters or millimeters, but probably centimeters.
An average pencil when new would be around 15 centimetres long.
Centimetre
The metric unit used to measure the mass of a pencil would be grams (g).
Any metric unit would do. But it might be easier to pick something smaller than the length of the pencil, like a centimeter, or a millimeter.
a ruler!
Millimeters.
Metres
Meters should be used to measure the length of a tennis court in metric units.
A ruler would do the trick.
You would measure it in centimeters.
It's gonna be inches/centimeters.
to be honest I would use a metre ruler that really helps a lot place your metre ruler on your desk. put your pencil starting from 0. Then measure it. This is how you would measure it.