For two statements p and q, and the compounded statement "If p, then q", we have the following definitions for the inverse, converse, and contrapositive of this compounded statement:
inverse: If not p, then not q.
converse: If q, then p.
contrapositive: If not q, then not p.
So, for the presented statement, i. e., "If you will be driving, then you should not take this medicine" we have:
p: you will be driving
q: you should not take this medicine
Notice that:
not p: you will not be driving
not q: you may take this medicine
Then, using the above definitions, we write:
inverse: If you will not be driving, then you may take this medicine.
converse: If you should not take this medicine, then you will drive.
contrapositive: If you may take this medicine, then you will not be driving.