If I were to tell a story about someone who had a particular problem and, by the time the story was finished, the problem was solved, would I use "...tuvo un problema" or "...tenía un problema" when setting up the story?
For example:
Miguel tuvo un problema. Su perro se tiró un pedo. Pero Miguel abrió una ventana.
Miguel had a problem. His dog farted. But Miguel opened a window. Miguel had a problem, but now it is solved (presumably).
However, we could also have the following situation where it isn't clear if the problem was ever solved or not, based on all the information we were given.
Miguel tenía un problema. Su perro se tiró un pedo y Miguel intentó abrir una ventana. Lamentablemente, no podía abrirla.
Mainly, I'm confused with regard to determining when to use tener
in the preterit and when to use it in the imperfect.