Answer
medium A
Work Step by Step
We know that total internal reflection occurs if the light moving from a region with a larger index of refraction enters into a medium with a smaller index of refraction. Since the light travels from medium A to medium B, we know that medium A has a greater index of refraction.