Stayman 1.8.24

With a 4-card major, we bid Stayman. With a 5-card major, we use a jacoby transfer. But what if we have both a 4-card major and a 5-card major? Which should we use?