Thank you so much for this! It's very generous of you to have taken the time.
At the risk of exhausting said interest, here's one real life example of a similar analysis: https://wsp-blog-images.s3.amazonaws.com/uploads/2011/09/171...
See PDF page 14. Note the lines called "Composite P / NTM EPS" which they built as a blend of American Eagle's, Tilly's and Zumiez's P/E multiple, which are companies X, Y and Z in my comment above (for some reason they gave AE double the weight which is unusual) and compared it to Heat's P/E multiple (Heat was the codename for retailer Rue21, or hypothetical company W in my example above)
I got this deck from https://www.wallstreetprep.com/knowledge/investment-banking-... which has a few other examples and a variety of other resources on the topic FYI