TAG HELP!: Repeated Course TWICE from Two Different Schools

I really need people’s help with my issue. I am planning on TAGing to UC Davis as a Managerial Econ major. Right now I have a 3.56 GPA.

I attended San Jose State in the Fall of 2014, while there I failed a Calculus 1 course. Due to my father passing away I left SJSU after only one year there and attended my local CA Community college.

My first year at CCC was rough because I was still trying to figure out life without my dad. I ended up failing Calculus 1 AGAIN.

But the summer of 2016 I pulled my shit together and was able to get an A in my Calculus course.

Question that’s been stressing me out is:

Will UC Davis alleviate BOTH of my F’s or just the F I got at my community college? If not, my GPA goes all the way down to a 3.23 (so technically I still have a chance of getting my TAG accepted, right?)

Let me know what you guys think. I really would appreciate some answers or relief.