Which of the following equations matches the given story? John has three times as many pencils as Noah and 5 pens. He has 17 pens and pencils all together. How many pencils does Noah have?
1) 5x + 3 = 17
2) 3x + 5 = 17
3) 3(x + 5) = 17
4) 5(x + 3) = 17