Total number of ways of selecting the first team = 8C2
Total number of ways of selecting the second team = 6C2
Total number of ways of selecting the third team = 4C2
Total number of ways of selecting the fourth team = 2C2
Total number of ways of selecting 4 teams = 8C2*6C2*4C2*2C2. But the question asks the total number of distinct ways. So the above value must be divided with 4!
Let A B C D E F G H be the friends, then
AB CD EF GH is the same combination as
AB EF CD GH, which is the same combination as
AB EF GH CD, which is the same combination as
AB GH EF CD, which is the same combination as
AB CD GH EF, which is the same combination as
AB GH CD EF, which is the same combination as
CD AB EF GH, which is the same combination as
CD AB GH EF, which is the same combination as
CD EF AB GH, which is the same combination as
CD EF GH AB, which is the same combination as
CD GH AB EF, which is the same combination as
CD GH EF AB, which is the same combination as
EF AB CD GH, which is the same combination as
EF AB GH CD, which is the same combination as
EF CD AB GH, which is the same combination as
EF CD GH AB, which is the same combination as
EF GH CD AB, which is the same combination as
EF GH AB CD, which is the same combination as
GH AB CD EF, which is the same combination as
GH AB EF CD, which is the same combination as
GH CD AB EF, which is the same combination as
GH CD EF AB, which is the same combination as
GH EF AB CD, which is the same combination as
GH EF CD AB.
Total 24 similar combinations
Answer = 8C2 * 6C2 * 4C2 * 2C2 /24 = 2520/24 = 105