If y=8/x then 2x+y=2x+8/x and as you can see when x is small and >0 this function is large and when x is really big and >0 this function is large again so somewhere in between this function has a minimum value. To find it you differentiate with respect to x and set the resulting function equal to zero.
d/dx(2x+8/x)=2-8/x2=0 solving for x gives 4/x2=1 or x=2. So at x=2 (2*2+8/2)=8 is the minimum value
Jim