When 345 added to a number the result is 987
\(345+a=987 \\\\ a=987-345 \\\\ \boxed{a=642}\)
the answer would be 642 be cause all you do is 987 minus 345 and the answer is the answer.