HELP PLEASE!!!

The football team wanted to buy some t-shirts for the match. There were 2 companies that were selling them. The football team needed the numbers on the t-shirts as well. So they had to pay a fee for that. The first company was selling the t-shirt for 15 pounds and the fee for the number on the t-shirt 50 pounds. The second one had the t-shirt for 10 pounds and fee for 85 pounds. The total price was the same with these companies. Find out how many t-shirts did the team buy? No answer needed, just explain to me please how to do it.