x+y=7
x^2+2xy+y^2=49
x^2+y^2=49-2xy=49-2*2=45
x^3y-2x^2y^2+xy^3
=xy(x^2+y^2-2xy)
=2×(45-2×2)
=2×41
=82