Ruth has pennies and dimes in her pocket. The number of dimes is twelve less than twice the number of pennies. Let p represent the number of pennies. Write an expression for the number of dimes.