Let's use the variable x to represent the number of dimes and y to represent the number of nickels.
If the total value is $1.50, we can write the equation:

Also, if there are 9 more nickels than dimes, we have our second equation:

Using this value of y from the second equation into the first one, we have:

Therefore Andres ha 16 nickels and 7 dimes.