jacob has a jar of nickels and dimes. he has twice as many nickels as dimes. he has 310. how many of each type of coin does he have