A farmer had a total of 22 men and horses living on it. There were a total of 72 legs. How many men and how many horses were present?

72 divided by 22.