Anita and beth have the same number of trading cards. Anita gives 18 of her cards to beth. As a result, beth has twice as many card as anita does. How many cards did anita have before she gave some away.