The number of goats to the number of sheep in a field is in the ratio 5:8. Farmer Giles has 32 sheep. How many goats does he have?