Alan used 27 beads to make friendship bracelets. He used 3 beads on each bracelet. How many bracelets did Alan make?