I was recently reading about Kepler's third law of planetary motion. There in two books I saw two different things. In one place it is written $r^3\propto t^2$ and in the other book it as written $t^2\propto r^3$.
Now to see if both was the same thing I did this with an example:
Thus we see that $B=2A$ and thus $B\propto A$
Also we see A=$\frac12$B and thus $A\propto B$. Thus we see that A $\propto B$ is the same as $B \propto A$.
But how can this be? If $A\propto B$ then A=kB and K= $\frac AB$ and if $B\propto A$ then B=kA and $k= \frac {B}{A}$. Thus the value of the constant changes.
I am confused about this. Please help and tell me whether $r^3\propto t^2$ is same as $t^2\propto r^3$.

$A\propto B$ tells us that as $A$ varies, $B$ also varies in such a way that the ratio of $A$ to $B$ never changes. But $A\propto B$ says nothing about the value of that ratio. For example, suppose $x = 2y$ and $y = 3z$. The statement $x \propto y$ says the ratio of $x$ to $y$ is fixed and unchanging. This is true. The ratio of $y$ to $z$ also is fixed and unchanging. It is fixed at a different value than the ratio of $x$ to $y$, but it is still fixed. Therefore $y \propto z$.
This works just as well when the two ratios are $2$ and $\frac12$ as it does when the ratios are $2$ and $3$.
Another way to look at this: let $A\propto B$, so that $A$ and $B$ vary in such a way that the ratio of $A$ to $B$ never changes. If the ratio of $A$ to $B$ never changes, the ratio of $B$ to $A$ cannot change. Therefore $B \propto A$.
So in fact it really does not matter whether you write $A\propto B$ or $B \propto A$. They mean exactly the same thing.