Complex sentence: Adams graduated from Harvard University and studied law before becoming a member of the House of Representatives of the Commonwealth of Massachusetts in 1826.
Split into simpler sentences: Adams graduated from Harvard University and studied law. He was elected to the House of Representatives of the Commonwealth of Massachusetts in 1826.