If 1 dies, No.2 can be given to one person directly, so it can not die. If No.2 dies and can be given to one person directly, then No.2 and No.3 can at least save their lives.
Then 2, 3, 4, 5 can basically save lives.
It is profitable to give them at least 1 block if they can save their lives.
Then number one has 96 gold coins at most.