I assume the teacher is saying that you have (<em>d)</em> dollar coins and (<em>f)</em> five cent coins where d and f are unknown numbers numbers. So:
I also assume when the teacher asks how many coins the person has, it is the number of coins total where both a dollar coin and five cent coin count as 1.