The number of quarters in Sarah's purse is one less than twice the number of dimes she has. If the dimes and quarters total $3.95, how many dimes does she have?