Think of 8 as 8/1
When dividing two fractions, we flip the second fraction and multiply.
The original expression is the same as (1/5) * (1/8)
Multiply straight across to end up with the answer 1/40