coins in your pocket consisting of and with a total value of $ Practice Problem

<-- Enter Total Coin Value
<-- Enter number of coins
<-- Enter what coin 1 is
<-- Enter what coin 2 is

The following practice problem has been generated for you:
You have 18 coins in your pocket consisting of half-dollars and nickels with a total value of $4.95
How many half-dollars and nickels do you have?