Expect more than one solution for how many of each coin. Two equations, THREE unknown variables. Use elementary row operations, but pick a variable to treat as a constant; best choice seems to be p.
Assuming p is a constant although not yet known value, -----simpler system
-
-
E1-E2,
Return again to simple system,
-
E2-E1,
You want to find what whole number p will make q and d to be whole numbers, and also be sure that q+d+p=20 :