A movie club offers two plans. Plan A charges $40 to sign up for the plan and $8 for each movie ticket. Plan B charges $67 to sign up for the plan and $5 for each movie ticket. How many movie tickets would someone need to buy for the plans to have the same total cost?