Another way to say "A pencil is used to write things." is "you can write things with a pencil"