The strategy is to let the slowest person, i.e., 1m, be the driver, drive 4m and 5m at y, turn around and pick up 2m and 3m at x.