Living in groups gives benefits but also brings costs. The graph below plots per capita benefits (solid line) and per capita costs (dashed line), both measured in the same units, against group size. Four group sizes are marked on the x axis: P, Q, R, and S.

Given these patterns in benefits and costs, which one of the group sizes P, Q, R, S best represents the optimal group size?