Ava has $9 to spent on cards. She finds friends with the same amount of money to split the cost of a set. One set costs $27. Each friend gets the same number of cards. How many cards does each friend get?