Tamara purchased 31 cases of tile to use on her bathroom floor. She used 17 cased in her upstairs bathroom and the rest in her downstairs bathroom. Write an equation to express how many cases she used in her downstairs bathroom.