resultant[ resultant[ a+b+x-4, b^3-2x+1, b ], a^3 - x - 2, a ]