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.)
since every d is .10 and every q is .25 the equation can be changed to 5(.10)+3(.25) which is equal to .5+.75 which adds up to 1.25
i did this by assuming that the amount of d is 8 at first, then change one of the 8 d to a q which will give you 7d+q, then assume another d is a q which will give you 6d+2q, repeat this until the amount of d and q add up to 1.25