Doubt by Lalwani

sir the formula used on the second question is different from what you have taught...is it wrong ?? (moseley's law)