Gluteus maximus is supplied by the inferior gluteal nerve (IV).
Gluteus medius is supplied by the superior gluteal nerve (I).
Gemellus superior is innervated by the nerve to obturator internus (III).
Gemellus inferior is supplied by the nerve to Quadratus femoris (II).
So the correct matches are: (A)-(IV), (B)-(I), (C)-(III), (D)-(II).