The Burlington Tigers are having team shirts made. One option is to pay Edward's Tees a $50 setup fee and then buy the shirts for $6 each. Another option is to go to City Printing, paying $40 for a setup fee and an additional $8 per shirt. The team parent in charge of the project notices that, with a certain number of shirts, the two options have the same cost. What is the cost?