What can u do for periods lasting more than 2 weeks?

I have had two periods that one lasted three weeks then had a rest for 5 days the atarted period again, but am now on day nine.