It took her four months to recover from the illness.

Literal

She [topic-は] illness [from-から] recovering [for-のに] four-months took.

~のに…かかった — のに marks the purpose ('for recovering'), かかる means 'to take (time).' 4ヶ月 uses the counter ヶ月 for months.