Original: He graduated from Adam Mickiewicz University in PoznaÅ with master's degrees in both law and history.
Simplified: He graduated from Adam Mickiewicz University in PoznaÅ with a master's degrees in both law and history.