5. Five friends Sonya, Tanya, Lena, Galia, and Vika were born in five cities: Riga, Penza, Kazan, Belgorod, and Moscow. Each of them loves candies produced in one of these cities. It is known that no one likes candies produced in their hometown. Sonya loves candies from Riga. Tanya is from Riga, and her favorite candies are from Penza. Vika loves candies from Moscow. Galia's favorite candies are produced in Belgorod. Vika is from Kazan. The native of Penza loves candies made in Lena's hometown. Who among the friends was born in Moscow?
Solution. From the condition, we can determine who likes which candies:

Sonia - from Riga

Tanya - from Penza;

Vika - from Moscow;

Galina - from Belgorod; therefore, Lena - from Kazan.

It is known that no one likes candies produced in their hometown. Let's mark this condition in the table, as well as the conditions that Tanya is from Riga, and Vika is from Kazan.

|  | Sonia | Tanya | Lena | Galina | Vika |
| :---: | :---: | :---: | :---: | :---: | :---: |
| Riga | - | + | - | - | - |
| Penza |  | - |  |  | - |
| Kazan | - | - | - | - | + |
| Belgorod |  | - |  | - | - |
| Moscow |  | - |  |  | - |

Since the person from Penza likes candies made in Lena's hometown, Lena is not from Penza. If Lena is from Moscow, then the person from Penza likes candies made in Moscow, which means the person from Penza should be Vika. But Vika is from Kazan. Therefore, Lena is from Belgorod. Galina likes candies from Belgorod, so Galina is from Penza. Then it remains that the person from Moscow is Sonia. Answer: Sonia.