Hi Garry
I am thinking the wood you have found is the wood that either the bunk bed hinge (front of trailer) attaches to or the table.
As Raz says any rotten wood should be replaced.
Hopefully some of our
Trillium experts will be along shortly to give you more specific advice.
*Posting at same time as David, listen to him he knows best!