And to add my 2 cents this is a very common physics problem many of us encounter in game programming. Very useful - most of physics is when it comes to games.

So jot the formula down somewhere...