First of all, I'm fully aware that, this is a very simple question. but I can't find the solution.
I want to make the foldable leg for a table like this : so I cut top and bottom of each leg 10 degrees. and installed the hinges : The problem is "pin part" when it folds , so I cant attach the leg surface to the table top sheet.
EDIT : According to Fred_dot_u answer :