Jamar figured that they will spend $39 for popcorn. Each movie cost $19. Write and solve an equation to find how many movies they can purchase.