Both parents and teachers educate children.

Literal

Parents [and-と] teachers [possessive-の] both [subject-が] children [object-を] educate.

両方 (both) refers back to the two groups joined by と. A general-truth statement about shared educational responsibility.