Box A contains the numbers 1, 2, 3, and 4. Box B contains the numbers 5, 6, 7, and 8. A number is first drawn from Box A and then another number from…