text: It was a socialist state and a federation made up of six socialist republics : Bosnia and Herzegovina , Croatia , Macedonia , Montenegro , Serbia , and Slovenia .
simplified: It was a socialist state and a federation made up of Bosnia and Herzegovina , Croatia , Macedonia , Montenegro , Serbia , and Slovenia .