Last year, the school library had a total of x books. Over the summer, the library acquired another 40 books and now has a total of 1,795 books. Which equation could be used to find x, the number of books the library had last year?