Wendy has only nickels and dimes in her pocket. The number of dimes is 8 less than triple the number of nickels. Let n represent the number of nickels. Write an expression for the number of dimes.