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 3 more horses than ponies , what is the minimum possible combined number of horses and ponies on the ranch ?
"3 / 10 * p are ponies with horseshoes , so p is a multiple of 10 . 5 / 8 * 3 / 10 * p = 3 / 16 * p are icelandic ponies with horseshoes , so p is a multiple of 16 . the minimum value of p is 80 . then h = p + 3 = 83 . the minimum number of horses and ponies is 163 . the answer is d ."
add(add(lcm(10, multiply(divide(10, 5), 8)), 3), lcm(10, multiply(divide(10, 5), 8)))