AM GM inequality states that for real positive numbers x,y
$$x + y \geq 2(xy)^{1/2}$$
You would get the least value for x = y
We can also write this as,
$$\frac x3 + \frac x3 + \frac x3 + y \geq 4\left((x^3)\cdot(y)\cdot\left(\frac{1}{27}\right)\right)^\frac14$$
You would get the least value for $x = 3y$
Why is this contradiction arising?
Also for a given set of variables being added together, how can we find the most accurate inequality using AM GM?
Let $x,y \ge 0$.
It is true that $x + y \ge 2 (xy)^{1/2}$, and that equality holds when $x=y$.
It is also true that $x + y = \frac13x + \frac13x + \frac13 x + y \ge 4((\frac13x)^3 y)^{1/4} = \frac{4}{3^{3/4}} (x^3y)^{1/4}$, and that equality holds when $\frac13x = y$.
These do not contradict each other, and neither of them is necessarily a minimum value of $x+y$.
In some applications of $x + y \ge 2 (xy)^{1/2}$, you assume that the product $xy$ is constant. In that case and in that case only, you can say that $x+y$ is minimized when $x=y = \sqrt{xy}$.
Similarly, if the product $x^3y$ is held constant, we can use the second version of AM-GM to conclude that $x+y$ is minimized when $\frac13x = y = (\frac x3)^{3/4} y^{1/4} = \frac1{3^{3/4}} \cdot (x^3y)^{1/4}$.
These still do not contradict each other: with different conditions on $x$ and $y$, $x+y$ is minimized at different points.