Answer:
Probably country Y had a comparative advantage over country X in the production of widgets, therefore trade resulted between the countries and it increased the gains for both countries.
Country Y will probably continue to produce and export widgets and country X will be producing and possibly exporting some other good.