Overlap 2d image than blend color with shader

hi friend

i want some help to make shader
when 2 sprite image overlap as per image attached
than i want its common area change color with merged color for example

red and blue color circle over lap so area get some type of black color
same for other colors also

thanks in advance …!!

Looking for a similar thing! Up!