Miss service groups her pencils in different ways. If she groups five pencils in a pile, there are two pencils left. If she groups six in a pile, there are two pencils left. If she groups seven in a pile there are two pencils left. What is the minimum number of pencils that Miss service has?