Find the model and part number for your brakes. It's on them somewhere. Probably the backside or down on the mount. Then go to Page C-499 of this document. If your model numbers are out of production then you might have to go to the archives which is a link in the top right of the document.
https://productinfo.shimano.com/#/co...737&acid=C-499
Your brake PN should be in the last column. The shift levers will be in the second column. Make sure there is a line connecting the box with your brake model to the hoses and then to the levers.
This document and others can be found at
https://si.shimano.com/en/#/
If you are wanting something other than Shimano, someone else will have to say. Microshift usually has stuff that works.