Farmer Brown had three pens, each with the same number of animals. Pen A held cows, Pen B held sheep,…