如何在1个标记表html或datatable中显示两个具有不同总记录的表

I'm trying to display some tables with different total of the record, but they always showing the same total of the record with some record doubled.

this is a display that i want to build : https://imgur.com/a/Kque6mR