The probabilities that players \( A \) and \( B \) of a team are selected for the captaincy for a tournament are \( 0.6 \) and \( 0.4 \), respectively. If \( A \) is selected the captain, the probability that the team wins the tournament is \( 0.8 \) and if \( B \) is selected the captain, the probability that the team wins the tournament is \( 0.7 \). Then the probability that the team wins the tournament is: