Luisa is Alejandra's grandmother. Because Alejandra is a cousin to both Maria and Juan, Luisa would also be the great-grandmother to Maria and Juan's children (including Sofia). So, Luisa is Sofia's great-grandmother.

Miguel is the son of Alejandra, who is the cousin of Maria. Therefore, Miguel and Maria's children are second cousins. This means Miguel and Carlos are second cousins to each other.
Juan is Maria's only brother, and Maria is the mother of two children, Sofia and Carlos. Maria and Juan have a cousin named Alejandra. Alejandra has a son, Miguel, and a grandmother, Luisa. What is the relationship between Luisa and Sofia, and between Miguel and Carlos? Make your response very short.