Juan was given a gift card for a coffee shop. Each morning, Juan uses the card to buy one cup of coffee. Each cup of coffee costs $2 and the original amount of money on the gift card was $30. Write an equation for A, in terms of x, representing the amount money remaining on the card after buying of coffee.