People in early adulthood (20s through early 40s) are ready to establish emotional closeness and maintain relationships with others. What is the primary developmental task of this stage?