System of equations:
d + q = 25
10d + 25q = 400
From first equation find d:
d = 25 - q
Then replace it in second​ equation:
10(25 - q) + 25q = 400
250 - 10q + 25q = 400
250 + 15q = 400
15q = 400 - 250
15q = 150
q = 150 / 15 = 10
Now replace q in first equation with found value:
d + 10 = 25
d = 25 - 10 = 15
So, Kirsten has 15 dimes and 10 quarters.