Answer:
There is trade diversion and a welfare loss for country X.
Step-by-step explanation:
A trade diversion is created since country X no longer imports widgets from country Z and instead it imports them from country Y. Since country X started to import from country Y following the formation of a regional trade agreement it is losing welfare. This happens because country Z's widgets had a lower price but they were replaced due to the advantages given to country Y's widgets by the trade agreement.