Cary and her friends Tasha both had 20 tickets each to play games. Cary used x of hers and Tasha used 2 times as many as Cary. When Cary's dad doubled the combined amount they had left, they ended up with 39 tickets. How many tickets(x) did Cary use?