Well, I did this last year. First you figure out which has the greatest temperature, for this is the one that loses heat. This can be denoted as +Q (loss of heat), and the one that has a heat increase is denoted as -Q. So, the loss of heat is equal to the heat gain (+Q = -Q). You may be thinking, what the !@#$%, they cancel out, but you would be wrong, sort of. Set up the formula like this:
+Q = -Q //Heat lost equals heat gained
mC(T0-TF) = mC(T0-TF)//The right side of the equation is negative because you take the inital temperature minus the final temperature and get a little number minus a big number (which equals a negative number).
You end up solving for the TF or anything you are looking for I guess.