I'm no mathematician or anything, but...
I think you just need to know the formula(s)...your teacher probably gave them to you or they are in your textbook
"...Nice, nice, very nice -
So many different people
In the same device."
--Kurt Vonnegut, Jr., "Cat's Cradle"