You are trying to juggle numbers, that never helps. There is no single "one size fits all" equation for this type of problems, they have to be solved step by step. The sooner you will understand and accept that, the better for you.
You will need to write heat balance, assuming final temperature is an unknown Tf.
Obviously coffee has to get colder, as some of its heat will be used to heat up and melt the ice and later to heat up water from the melted ice. Coffee temperature will change from 98.4 to Tf. Try to express heat given away using this information.