Machine A makes 40% of the bottles produced at a factory. Machine B makes the rest. Machine A spoils 5% of its produce, while machine B spoils only 2%. Using an appropriate tree diagram, determine the probability that the next bottle inspected at this factory is spoiled.