Socks in the dark

Word problem for socks in the dark