a ranch has both horses and ponies . exactly 3 / 10 of the ponies have horseshoes , and exactly 5 / 8 of the ponies with horseshoes are from iceland . if there are 4 more horses than ponies , what is the minimum possible combined number of horses and ponies on the ranch ?
import scipy
n0 = 3.0
n1 = 10.0
n2 = 5.0
n3 = 8.0
n4 = 4.0
t0 = n1 / n2
t1 = n3 * t0
t2 = scipy.lcm(int(n1), int(t1))
t3 = n4 + t2
answer = t3 + t2
print(answer)