Imagine you are presented with two black bags. In the first, there are 10 balls numbered 1 to 10. In the…