What to do about that mushy subfloor

Moisture is first likely culprit