Noob here

I have a wooden sheet of plywood that acts as a protective topper for an outdoor bath tub (don’t ask). I’m looking for a way to add folding legs to the underside that will rest in the bath tub when the topper is on, and fold out to form a table sitting alongside the bathtub while it’s in use