sue had $5.65 worth of quarters and dimes. she had 3 more quarters than she had dimes. how many quarters does she have? how many dimes does she have?

number of dimes --- x

number of quarters -- x+3

10x + 25(x+3) = 565

solve for x