Solve the formula t=v+k/g for g