A 10-m plank is being moved by rolling it over two cylindrical logs placed 2 m from either end of the plank. As the plank is pushed, the logs roll on the ground without slipping, and they do not slip with respect to the plank. How far can the plank be moved before the rear log reaches the end of the plank?