Explain these two inorganic reactions


How to decide how many OH- will be reacted and what will be the final structure?

It is written in ncert aluminium and beryllium form tetrahedral complex in P block

What's the reason?