Answer:
There are 153 combinations
Combinations - any two from eighteen is given by the formula 18C2 or 18! / (2!*16!)
= 18 * 17 / 2 = 153
OK that is the maths - now the explanation
The first sock can be any of 18
The second sock can be any of 17 (one already been selected and they must be mismatched)
Therefore there are 18*17 = 306 permutations she could make
However the question asks for "combinations" not "permutations"
A green sock on the right foot and a yellow sock on the left foot is deemed to be a different "permutation" to a yellow sock on the right foot and a green sock on the left foot. HOWEVER, they are regarded as the same "combination" in both cases you have one green and one yellow sock.
Therefore for combinations we must divide the 306 permutations calculated above by 2 = 153
FYI Walton has incorrectly given you the value of 18!. That would only apply if Martha Mathy had 18 feet!