a vending machine takes only nickels and dimes. at the end of the day there were three times as many nickels as dimes and a total of $25. how many of each coin were in the machine