human
Hannah's family has ten pigs on their farm. They also have three fewer than twice as many cows as pigs and six more goats than cows. How many animals do they have on their farm?
assistant
How many pigs are there? ** Twice the number of pigs is 10 x 2 = <<10*2=20>>20.
How many cows are there? ** So, Hannah's family has 20 - 3 = <<20-3=17>>17 cows.
How many goats are there? ** They also have 17 + 6 = <<17+6=23>>23 goats.
How many animals do they have on their farm? ** So, they have a total of 10 + 17 + 23 = <<10+17+23=50>>50 animals on their farm.
#### 50