Inside Canadian Government S2M4_Q3

How are governments formed out of these legislatures?