On a farm, there are 20 fewer cows than twice the number of pigs. If there are 50 cows, how many pigs are there? Write a two step equation to model the scenario and answer it.