Stickers come in packs of 5. Max buys 12 packs. He gave his three friends some stickers. They each receive the same number. He has 27 stickers left. How many stickers did max give each of his friends?