Edge weight '1' was repeated. Therefore weights are not unique.
MST contains x,y,z - that doesn't mean, every MST contain x,y,z. Therefore may be some MST doesn't contain x,y and z.
If an Edge is coming in MST then its Less than or Equal to the All edge weights in the Cycle .
To Solve this one
$Y\le6$ , $X\le11$, $Z\le8$ So maximum value will be $6+11+8=25$
So, here ans must be $25$.