Rex and Simon had an equal number of postcards. After Rex gave Simon 81 postcards, Simon had 7 times as many postcards as Rex. How many postcards did they have altogether?

They had 162 postcards altogether.