The value of x+2y is 10.
Let's work through the given equations:

From equation 2, we can substitute y in equation 1 with
:

For these exponents to be equal, their bases must be the same:

Rearranging this equation gives us two possible solutions for x:
x=0 (which we discard because
x and y are distinct positive real numbers)
x=2
From equation 2, if x=2, then

Therefore, x=2 and y=4.
Finally, substitute these values into x+2y:
x+2y=2+2×4=2+8=10
So, x+2y=10.
Question
If x^y=y^x and x^2=y, and x and y are distinct positive real numbers, then what is the value of x+2y?