Final answer:
Coal and petroleum occur in sedimentary rocks like sandstones, shales, and limestones.
Step-by-step explanation:
Sedimentary rocks are the group of rocks in which coal and petroleum occur. Sedimentary rocks form when broken pieces of other rocks from weathering processes get cemented together or when minerals precipitate out of a solution and are cemented together through sedimentary processes. These rocks include common sandstones, shales, and limestones.