She thought about the matter for a long time.

Literal

She [topic-は] long time that matter [object-を] thought-about.

その件 ('that matter/issue') uses 件, a formal counter/word for matters or cases. 考えた uses 考える ('to think/deliberate'), implying serious consideration rather than casual thinking. 長い間 sets the duration of deliberation.