How do I open the second gate with a shelf next to it?


Hint 1 of 3:
Do you remember how the first gate worked?  If you put a head on it, then
the shelf would fall and the door would open.

Hint 2 of 3:
This gate/shelf is similar, but it takes more than one head to weight it
down.

Hint 3 of 3:
In fact, it takes all three heads to open the gate.