To express how many peppermints Riley has, you can start with the number of peppermints Troy has, which is \( p \). Since Riley has 4 fewer peppermints than Troy, the expression for the number of peppermints Riley has would be:
\[ p - 4 \]
So, Riley has \( p - 4 \) peppermints.