The correct response is:
a different types because they formed in different ways.
Rock A formed from liquid rock (igneous rock), while Rock B formed from small pieces of rock (sedimentary rock). Since they have different formation processes, they are classified as different types of rocks.