Answer
Please see the work below.
Work Step by Step
As we know, due to osmosis, water moves across the semipermeable membrane into the pill as it is in a hypotonic solution. We also know that the pressure slowly increases and pushes the elastic membrane to the right which causes the drug to exit.