Anthony has 6 coins worth $1.20. If the coins are all quarters and dimes, how many quarters and dimes does he have?

q + d = 6 , #1

25q + 10d = 120 or
5q + 2d = 24 , #2

solve #1 and #2 using your favourite method