When she realized that she was four months pregnant, she thought that an abortion would solve the problem.
As she discovered she was pregnant for four months, she considered ending the pregnancy in order to solve the issue.