The number of people contacted at each level of a phone tree can be represented by f(x)=3^x where x represents the level. What is x when f(x) =27?