Write an equation to solve

The library bought books at $15 each and a video rack for $35. These purchases cost $395 altogether. How many books were bought?