We have,
x+y=3.......(1)
xy=2.......(2)
By equation (2) and we get,
y=2x
Put the value of y in equation (1) and we get,
x+2x=3
x2+2=3x
x2−3x+2=0
x2−(2+1)x+2=0
x2−2x−1x+2=0
x(x−2)−1(x−2)=0
(x−2)(x−1)=0
If x−1=0 then, x=1
If x−2=0 then, x=2
Put the value of x in equation (2) and we get,
y=21=2
y=22=1
Therefore,
x4+y4=24+14=17
Hence, this is the answer.