We have a right triangle......the hypotense is 8 and we are looking for the adjacent side next to the angle
The cosine relates the adjacent and hypotenuse...so we have
cos (10°) = adjacent side / 8 multiply both sides by 8
8*cos(10°) = adjacent side ≈ 7.9 ft