Fred has 3 times as many dimes as quarters. How many dimes does he have if the value of all the coins is $3.85?

d = 3 q

10 d + 25 q = 385

solve the system using substitution or elimination