41.66% chance for ONLY a plain pencil to be selected, 50% that ONLY a color pencil will be selected, and a 44% chance for BOTH items to be selected.
Step-by-step explanation:
In box A, there are 12 items total, and in box B, there are 6 items total.
Since 5/12 items in box A are plain pencils, there is a 5/12 or 41.66% chance it will be that (for ONLY box A).
There is a 3/6 or 50% chance it will be a color pencil (for ONLY box B)
Now to find the probability that BOTH will be selected, total all items. 12 = 6 = 18, so in total there are 18 items. Then, add all plain pencils and color pencils, 5 + 3 = 8. 8/18 chance that both will be selected, or 44.44% chance.