Joy put 8 photos on each page of her album. When she was done, she had 2 pictures left over. She put 40 pictures in the album. Write an equation that can be used to find how many pages Joy filled?