Title: Derivation and discussion of crystal structures of compounds ABX3 and A2BX6