Taylor bought 48 of marshmallows to the bonfire. Taylor and 10 of her friends made s’mores with them. At the end of the night, there were 9 bags left. How many bags of marshmallows did Taylor and her friends go through? (Write the operation and the answer)