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