Deirdre is a member of a very small but high-class organization called Algebra Lovers Anonymous. She paid $10 in dues for each of her first 3 years as a member and $2 in dues each year after that. If Deirdre has paid a total of $38 in dues, for how many years has she paid $2 in dues?