This seems like a graph theory problem, but I'm not sure how to approach it.
To clarify potential ambiguities, let's set up the situation.
You are wearing a sweater (with one arm through each sleeve). You are also wearing a pair of earphones, which are connected to your stationary electronic device. Each ear is connected by one wire to the electronic device.
Can you take off your jacket without taking off your earphones?
Not if you're holding the device in a hand and your headphones aren't snaked through your sleeve. Your hand, your arm, your head/neck, and the headphones forms a closed loop which prevents you from taking off the sweater.