the company was arranged in this way : aragorn , frodo , and sam were in one boat ; boromir , merry , and pippin in another ; and in the third were legolas and gimli , who had now become fast friends .