They are both beneficial detrivores.
1 = Brittle Starfish AKA Serpent Star
2 = Fireworm AKA Bristleworm
Give a little care on #2. It has sharp bristles that can stick in your skin and cause irritation, itching, etc. There is a type of infection that can be very painful that can be started by a bristlework stick as well.