For dividing fractions/mixed numbers, we can use a method called KCF, or keep, change, flip.
3 1/2 as an improper fraction is 7/2.
So, we keep 7/2, change the division symbol to multiplication, and flip 5/8 to 8/5.
7/2 x 8/5 = 56/10 = 5 6/10 = 5 3/5
The final answer is 5 3/5.