Simple

Get one from the box named as MIXED. Surely what's inside it is APPLE or ORANGE. Can't be both. If the one you get is an apple the boxes contains fruits as follows.

MIXED - Apple
ORANGE - both
APPLE - Orange

If the one you get is an orange

MIXED - Orange
ORANGE - Apple
Apple - both