Andy had some basketball cards. After he bought 12 more, he had 48 cards. How many cards did Andy have at the start? Write an algebraic equation and solve.