All members of a group play basketball, while all except one play ice hockey. The number of possible basketball teams of $5$ members each is the same as the number of possible ice hockey teams of $6$ members each. How many members are there in the group?
I am unable to derive a formula for the number of teams.
Answer - $15$