Questions & Answers about Мне повезло с квартирой.
Because Russian uses a different structure here from English.
In Мне повезло с квартирой, the person who experiences the luck is put in the dative case: мне = to me.
A very literal way to think of the sentence is:
To me, it turned out luckily with the apartment.
So Russian is not treating I as a normal subject here. This is a common pattern with impersonal expressions:
- Мне повезло. = I got lucky.
- Мне холодно. = I am cold.
- Мне интересно. = I am interested / It is interesting to me.
So мне is exactly what Russian expects in this construction.
Повезло is the past-tense form of повезти, meaning to be lucky for someone / to turn out luckily for someone.
In this sentence, it means something like:
- I got lucky
- Things worked out well for me
- I was fortunate
It is an impersonal form, which is why it does not agree with квартира.
This is an important point: повезло does not mean the apartment was lucky. It means luck happened to me in connection with the apartment.