Step-by-step explanation:
When you pull the sock off of the blanket, the socks gain electrons out of blanket. This makes socks slightly negatively charged. The potential energy of the socks rise whereas potential energy of the blanket reduces. This happens because of exchange of electrons between socks and blanket.