In a piggy bank Jane has 8 more quarters than dimes and she has 5 less nickels than dimes. Write an algebraic expression

q = d+8

n = d-5