Part of the problem is in your terminology. They should be referred to as W8x18 and W8x21 steel beams. The rest of the problem with a question like this is that the answer depends on loads, lateral support of the top flange, end connections, etc. I would certainly be wary about answering a question like this unless I knew all that information. My response could get someone killed.