We have,
xy=yx …….. (1)
And x=2y ……. (2)
On putting the value of xin equation (2), we get
(2y)y=y2y
2y.yy=yy.yy
yy=2y
ylny=yln2
∴y=2
Therefore,
x=4
So,
x+y=4+2
x+y=6
Hence, this is the answer.