justin had nickels and dimes in his pocket. when he counted out his change, he had 80 cent. if there are 12 coins altogether, how many dimes did he have?

N+D=12

5N+10D=80