Answer: Peter Quince (a carpenter), Snug (a joiner), Nick Bottom (a weaver), Francis Flute (a bellows-mender), Tom Snout (a tinker), and Robin Starveling (a tailor).
Explanation:
1) Find the object of the preposition.
2) Ask yourself which other word in the sentence is related to this noun or pronoun by the preposition.
Can i get a picture of the dialogue and ill try to help