c^2=a^2+b^2-2abcosC

So im supposed to solve for cosC.

I got cosC=-c^2-a^2-b^2/2ab but i think thats wrong lol can anyone help? i appreciate it.