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

(i need the answer and the work of how you found that answer)