Spotting what was problem help please

I was spotted on 31day of period and 26day of period what is the reason