Rational social wayfinding