This is grade 2. They don't use dollar or half dollar coins in the solution. It was P, N, D and Q. I didn't show that and with only 4 quarters, you can only have limited solutions where S = 2J and where S has 5 coins and J has 10 coins. If you want to extend the types of coins, then you can have a multitude of solutions.