There are 87 balls in a jar. Each ball is painted with at least one of two colors, red or green. It is observed that 2/7 of the balls that have red color also have green color, while 3/7 of the balls that have green color also have red color. what fraction of the balls in the jar has both red and green colors?