The brownish rock is a sedimentry rock was formed when things like sand, mud, or pebbles get laid down in layers. Eventually the layers are lithified.
The grey rock is a metamorphic rock and was when other rocks are changed because of heat or pressure. Earth movements can cause rocks to be deeply buried or squeezed. As a result, the rocks are heated and put under great pressure. They do not melt, but the minerals they contain are changed chemically, forming metamorphic rocks.
The red dots rock is an igneous rock. Igneous rock forms when hot, molten rock crystallizes and solidifies.