I believe your answer is correct. Keep in mind that while both W and Y contribute to the absorption at 280nm, W absorbs much more strongly. If you were asked this same question but one compound contained W and Y while the other compound contained W and W, the compound that would show the stronger absorption would be the W and W compound.