Take it one box at a time. If 3 out of 5+3, or 3/8 items in the first box is a pen, the probability of choosing it at random is 3/8.
Similarly, 5/10 are crayons in the second box.
You can find the probability of both happening by multiplying those two fractions.