Hi Priya,
Yes, you have to create with both A 088 Dotted line reports to and B 088 Dotted line supervisor in the T-code OOIT & OOSU. in the t-code: OOVK you have to assign this relationship like
S A 088 S
S B 088 S
after that config matrix type with OO9M
(check std. one legal you will understand how to create your custom one)