Pencils and Jars Puzzles

pencils

Puzzle 1

I have some pencils and some jars.
If I put 4 pencils into each jar I will have one jar left over.
If I put 3 pencils into each jar I will have one pencil left over.
How many pencils and how many jars?

 

Puzzle 2

Again I have some pencils and some jars
If I put 9 pencils into each jar I will have two jars left over
If I put 6 pencils into each jar I will have three pencils left over
How many pencils and how many jars?

 

Stuck ?

The first one can be solved using algebra and two linear equations.
Try doing it yourself first, then read our solution.

The second question is more involved, and is totally up to you to solve it!