Please, see the picture below
I know I should provide a code what I have tried, but I do not know how in this case. I believe I should use the tabular enviroment, but then maybe something needs to overlay in the middle. How exactly, I do not know. Perhaps I should use tikz to do it? However, I do not think this approach is effective due to the size of the overlaying when you make a longer table.
Thank you