Nicki shows a magic trick to three of her freinds. Each of those freinds shows it to three more freinds. If the pattern is repeated two more times, how many people now know the trick?