The time it will take you to visit the doctor is: 45 minutes
How to solve exponential word problems?
apply the exponential function:
A = P

You go to the doctor and he gives you 10 milligrams of radioactive dye. After 12 minutes, 6.5 milligrams of dye remain in your system.
we can find r:
6.5 = 10

6.5/10 =

0.65 =

ln(0.65) = 12r
ln(0.65)/12 = r
Our equation is now:
A = 10

2 = 10

0.2 = e^{t*ln(0.65)/12}
ln(0.2) = t*ln(0.65)/12
12ln(0.2) = t*ln(0.65)
12ln(0.2)/ln(0.65) = t
44.83 = t
rounding:
45 minutes = t