Charlie and Deanna went to the movies and spent $36 on tickets and snacks. If they spent $12.50 on snacks, how much did the tickets cost?