One baseball team played 40 games. If this baseball team won 90% of the games how many did they win? Round your answer to the nearest whole number if necessary