Paige and her family went to the movies. They bought 4 tickets and paid $12 for popcorn. They spent $40. How much did each ticket cost?

I need equation and cost :)