Congratulations!
You have found the answer to the riddle, which is:
The wise man told the brothers to switch camels.