What I got from the word problem:
p = d
.25q * 2 = d
.05n * 3 = d

Simplified:
p = d
.50q = d
.15n = d

So this would mean:
.50q = .15n
Because both variable 'd' are the same value

So:

q = d / .50
n = d / .15

I can't seem to plug in anything for anything because I keep ending up with two or more variables in a single linear equation. How would I go about doing this?