Answer:
sedimentary rock
Step-by-step explanation:
Sedimentary rocks are formed from pre-existing rocks or pieces of once-living organisms. And as you said "it formed from the remains of organisms that lived in water". And that makes it a sedimentary rock.
Hope this helped!
Have a supercalifragilisticexpialidocious day!