A purse contains $2.95 in quarters and dimes. The number of quarters exceeds the number of dimes by 2. Find the number of quarters and dimes in the purse.