For a 20x50m (roughly) garden, I used 25 pallets. I found someone who had a gate they didn’t want. Hardware and gate for $40. 40 pallets delivered to me. I gave him $100. Delivery was well worth it. $20 for a box of 200 screws. I used metal plates 40 with a lot to spare for $40. I screwed together side by side 2 pallets and turned every 3rd for stability. It also made little cubbies in the garden for raised beds. will use cinder blocks in spring to complete this. It took 2 Saturdays.