James has eight coins in his pocket. All the coins are either dimes or quarters.The total value of the coins is $1.25. How many of each type of coin is in James’s pocket?

(Hint: Let d stand for the number of dimes, and let q stand for the number of quarters. Remember that one quarter equals $0.25 and one dime equals $0.10.)