A troop of boy scouts hiked to a camp in the woods for supper.They returned home by a apth across lots,whih was two and a half miles shorter than the road which they went.the scout master said that they had walked 7 miles in all.how many miles they walked before supper?

L is length to supper.

L-2 is the length home.
7=L + L-2
solve for L

To determine how many miles the troop of boy scouts walked before supper, we need to set up an equation based on the information given.

Let's assume that the distance they hiked to the camp on the road is 'x' miles. Since the path they took on the return journey was two and a half miles shorter than the road, their distance on the return journey would be 'x - 2.5' miles.

The total distance they walked is given as 7 miles, so we can set up the following equation:

x + (x - 2.5) = 7

To solve this equation, we simplify and combine like terms:

2x - 2.5 = 7

Next, we isolate the variable 'x' by adding 2.5 to both sides:

2x = 7 + 2.5

2x = 9.5

Finally, we solve for 'x' by dividing both sides by 2:

x = 9.5 / 2

x = 4.75

Therefore, the troop of boy scouts walked 4.75 miles before supper.