A group of tourists spent three days hiking from the beginning to the end of the trail. On the first day, they hiked 1/8 of the trail. On the second day, they hiked 4/7 of the remaining trail. On the third day, they hiked 1/3 of the remaining trail plus the last 8 km. How many km long is the trail.

I NEED THE ANSWER FAST