Charlie and Deanna went to the movies and spent $36 on tickets and snacks. Popcorn cost $7. How much were the tickets?