For transfer students, AP exams can also be used to meet the minimum transfer admission subject requirements in English (UC-E), Math (UC-M) and 4 other courses chosen from the humanities (UC- H), behavioral/social sciences (UC-B) and biological/physical sciences (UC-S).
AP credits | UC Admissions
It sounds like you qualify, but you should double-check by contacting UCLA admissions since the cost of being wrong about this is being denied admission