Inkscape joining (union) of paths

When joining/adding two paths (as in discrete math union) located in different layers, the resulting path will be located in the layer selected when doing the joining.

Inkscape groups

.. are recursive! Grouping two groups works; ungrouping them leads the original two groups!