You want these hinges. You'll need to get a white shelf to be the table top.
https://www.amazon.com/Xintan-Tiger-Folding-Bracket-Stainless/dp/B074XH2RGB
I'd get bolts and nuts and put a wide washer on the inside of the Alex units. They are kind of a pressed wood, so wood screws won't hold a lot of weight.