a ranch has both horses and ponies . exactly 5 / 6 of the ponies have horseshoes , and exactly 2 / 3 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 ?
"5 / 6 * p have horseshoes , so p is a multiple of 6 . 2 / 3 * 5 / 6 * p = 5 / 9 * p are icelandic ponies with horseshoes , so p is a multiple of 9 . the minimum value of p is 18 . then h = p + 4 = 22 . the minimum number of horses and ponies is 40 . the answer is d ."
add(add(lcm(6, multiply(divide(6, 2), 3)), 4), lcm(6, multiply(divide(6, 2), 3)))