Sam has 18 coins in his pocket that are either quarters or nickels. The total value of these coins is $3.90.

Let q represent the number of quarters and n represent the number of nickels. The following system of equations represents this situation:

q+n=18

0.25q+0.05n=3.90

How many quarters and nickels does Sam have?

Respuesta :

gd46
q=18-n

0.25 (18-n) + 0.05n=3.90
 (4.5-0.25n) + 0.05n=
             4.5 - 0.30n= 3.90
                   - 0.30n= -0.60
                             n=2
                             q=16