google sheets – How to sort the types of materials from one column

I have in Sheet1, column B, 5 types of materials. In column L, I have numbered the position of each one.
So, Position 1 to 6, is ‘Plastic tube’
enter image description here

I need a formula, in Sheet2, that can calculate this automatically, so for each type of material to show in what position can be found.

Like this:
enter image description here

or

enter image description here

It would be better if can be search by position, because the types of material can be one, 2, or more

Link: https://docs.google.com/spreadsheets/d/1CDdvFChCx2_1bZ3rY2ZApQOjOM22rTcLx4mUllNqYqw/edit?usp=sharing