Alright well if your solving for g than the answer is
g = 5/k and 2/m as your denominator Hope this helps :)