Hello, thank you for taking the time to post your question!
When you are dividing by fractions like 8 / 7 divided by 8 / 5, you want to multiply by the reciprocal. What that means in this case is taking
[8 / 7] x [5 / 8]
=40 / 56
=5 / 7
I hope that helps you get moving in a better direction on this type of question! Feel free to reach out if you have any additional questions beyond that :)