Safari 12- unable to click on pop up window

I want to click on both section A and B.

The highlighted area (in red color) is one single image but has two different buttons for section A and B.

But in safari browser, Safari consider it as one section and provide only one common XPath for two separate section.

I already tried the same path which I used for the Chrome browser.
Chrome provide tow different XPath but safari gives only one?

Can anyone tell me how to select these two buttons?

or to get XPath for same?