[Physics] Gravitational acceleration g and height h calculated correctly?

Good day, Did I calculate the task (parts a) and b)) correctly? Because there are a few differences in my solution. The solution also confuses me a bit, since here the calculation was done with kilometers km and at the same time with meters m in a). I always convert to the base unit first….