Hannah's family has x pigs on their farm.
They have three fewer than twice as many cows as pigs, which means they have 2x - 3 cows.
They also have six more goats than cows, which means they have 2x - 3 + 6 = 2x + 3 goats.
The total number of animals on their farm is the sum of the number of pigs, cows, and goats: x + (2x - 3) + (2x + 3) = 5x.
We are given that the total number of animals on their farm is 50, so we can write: 5x = 50.
Dividing both sides by 5, we get: x = 10.
The value of x is 10.
#### 10
The answer is: 10
Below is a math problem. Provide a detailed, step-by-step solution.

### Problem:
Hannah's family has x 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?
If we know the answer to the above question is 50, what is the value of unknown variable x?

### Answer:
