An apple costs [tex] 2 \frac{1}{7} [/tex] times the cost of a pencil and a book costs [tex] 4 \frac{2}{3} [/tex] times the cost of an apple. How many pencils can be purchased for the same price as buying 1 book?