Here is a brief summary of the A-G courses that are required for CSU and UC admission: (Note that CSU and UC requirements vary slightly)
A. History/Social Science– 2 years required (2 years of history/social science, including one year of U.S. history OR one semester of U.S. history and one semester of American government, AND... CSU:1 year of history/social science from either the “a” or “g” subject area; UC:1 year of world history, cultures and geography from the “a” subject area).
B. English- 4 years required (English Language Arts courses, including no more than one year of ESL/ELD courses).
C. Mathematics- 3 years required, 4 years recommended (Complete Algebra I and II, and Geometry).
D. Laboratory Science–2 years required, 3 years recommended (UC: 2 years of laboratory science, including at least two of the three core disciplines of biology, chemistry and physics. Both courses must be from the “d” subject area. CSU:At least 1 year of physical science and 1 year of biological science, one from the “d” subject area and the other from the “d” or “g” area).
E. Language Other than English–2 years required, 3 years recommended (2 years of the same language other than English).
F. Visual and Performing Arts (VPA)–1 year required (1 yearlong course in visual and performing arts selected from dance, music, theatre/drama and visual arts).
G. College Preparatory Electives–1 year required (1 year of an elective chosen from any area on approved “a-g” course list. CSU: Agriculture courses traditionally accepted by CSU that are not on the “a-g” list will be considered on a case-by-case basis).
For your high school's list of UC certified A-G course list go to: https://doorways.ucop.edu/list/