There are three pairs of socks of three different types A, B, and C in a drawer. The goal is to pair these socks. If socks are pulled out two at a time and put back if not matching, what is the maximum number of times repeating this process until the socks are paired?