x^2+4y^2=25,4x^2+y^2=40