Answer:
Rocks A and B are different types of rocks.
Step-by-step explanation:
Rock A was formed from small pieces of rock, which indicate a formation of a sedimentary rock, considering that those types of rocks are formed this way.
Rock B, however, was formed by liquid rock, which is another term for magma. Igneous rock is formed when magma cools down.
This concludes that the two rocks are different types.