Settlers are trying to determine the value of g on a distant planet. They throw a wrench downward from a height of 3 m. If the initial speed of the wrench is 2 m/s, and the speed right before impact is 10 m/s, what is the value of g?