Sarah is reading her favorite book, "The Wonders of Mathematics". She reads an averge of 18 pages a day and the book has 314 pages. Write a rule, p, in function notation to find the number of pages she has left to read at the end of any given day. Let d represent the days spent reading.