Well, the diagram is impossible unless the weights are all resting on the floor, so let's assume they are. This system will find a steady state only at a local minimum of potential energy, so the lightest weight will be lifted before the heavier two get off the ground.