You get off the subway, stash your earbuds in your pocket, and when you pull them out again, they’re completely tangled—even after you painstakingly untangled them yesterday. Why does it happen every time? Well, there’s actually a whole branch of science to help explain, and it’s called knot theory,…