(C). To ensure that at least two tablets of each kind are among the extracted, we need to consider the worst-case scenario. Let's assume that we initially pick all the tablets of medicine B, ie 15, and then start picking tablets of medicine A. In the worst-case scenario, we would need to pick all 15 tablets of medicine B. After that, we can start picking tablets of medicine A. To guarantee that we have at least two tablets of medicine A, we need to pick two additional tablets. Therefore, the minimum number of tablets that should be taken is 15 (medicine B) + 2 (medicine A) = 17
So, the correct answer is C. 17 tablets.