The rate is found by dividing the cost by the number of pencils:
[tex]rate=\frac{16\text{ dollars}}{5\text{ pencils}}[/tex]The unit rate can be found by dividing the numbers to get the amount in dollars a pencil or each pencil cost:
[tex]\text{unit rate}=\frac{16}{5}\text{dollars per pencil}\approx3.20\text{ dollars per pencil}[/tex]