EXPLANATION :
From the problem, Joey had d one-dollar bills and f five-dollar bills.
The total amount in his wallet will be :

When d = 7 and f = 4, the total amount in his wallet is :

ANSWER :
The expression is Amount = d + 5f
The amount in his wallet is $27