I assume you mean 5/8 of a pound not 58 pounds. In that case convert your total number of pounds into eights to make it easier to calculate. 5 pounds is equal to 40/8 pounds of cheese. Now divide this by 5/8. That equals 8. SO you can make 8 batches.
Me being a junior in high school and not knowing middle school math
It would be log7squared(7)