came up with an idea
ある考えを思い付いた。
I just thought of something.
とうとう彼女は良い考えを思い付いた。
At last, she came up with a good idea.
いい考えを思い付いたんだよ。
I just thought of a good idea.
その時私は良い考えを思い付いた。
That's when I came up with a good idea.