smart production line project

So blue cans can have several different lengths, and red cans can have several different lengths. Do the lengths overlap i.e. can a red can and a blue can have the same length?

If cans don't pass where do they go and how?

What is in the cans, it isn't applesauce is it?

Could you use some other technology such as rfid to identify cans type?