##4 * 10^(-4)moles N_2##
For starters I think that you mistyped the value of the Henry law constant it should actually be
##K_H = 1 * 10^5atm ## or ## K_H = 1 * 10^(-5)atm^(-1)##
I will use ##K_H = 1 * 10^(5)atm## since I assume that this was the actual value given to you.
The idea here is that you can use Dalton’s Law of Partial Pressures to determine the of nitrogen gas ##N_2## above the solution then use Henry’ Law to determine the mole fraction of nitrogen gas.
As you know Henry’ Law states that the solubility of a gas in a liquid is proportional to the partial pressure of the gas above the liquid.
If you take ##chi_(N_2)## to be the mole fraction of nitrogen gas in the solution you can express Henry’s Law as
##color(purple)(|bar(ul(color(black)(color(white)(a/a)P = K_H xx chi_(N_2))color(white)(a/a)|)))##
This means that the partial pressure of nitrogen gas above the solution depends on its mole fraction in the solution.
Now the partial pressure of nitrogen gas above the solution will depend on its mole fraction in the air ##->## think Dalton’s Law of Partial Pressures here.
You will have
##color(purple)(|bar(ul(color(white)(a/a)color(black)(P_(N_2) = chi_(air N_2) * P_total)color(white)(a/a)|)))##
Here
##P_(N_2)## – the partial pressure of nitrogen gas
##P_total## – the total pressure above the solution
##chi_(air N_2)## – fraction of ##N_2## in the air equal to ##0.8##
Plug in your values to get
##P_(N_2) = 0.8 * 5 atm = 4 atm##
Plug this into the equation for Henry’s Law to get the mole fraction of nitrogen gas dissolved in the solution
##4 color(red)(cancel(color(black)(atm))) = 1 * 10^(5)color(red)(cancel(color(black)(atm))) * chi_(N_2)##
##chi_(N_2) = 4/(1 * 10^(5)) = 4 * 10^(-5)##
SIDE NOTE This is why I said that the value you listed for the Henry law constant is inaccurate. Assuming that you have ##K_H = 1 * 10^(-5)atm## the mole fraction of dissolved nitrogen gas in this solution will come out to be ##>1## which is not possible
##chi_(N_2) = 4/(1 * 10^(-5)) = 4 * 10^(5) ->## NOT possible
Now you know the mole fraction of dissolved nitrogen gas in this solution. This mole fraction tells you the ratio that exists between the number of moles of nitrogen gas and the total number of moles present in the solution.
If you take ##n## to be the number of moles of nitrogen gas dissolved you can say that
##chi_(N_2) = n/(n + 10)##
This is true because you know that you have ##10## moles of water present in this solution.
You thus have
##4 * 10^(-5) = n/(n + 10)##
Rearrange to get
##n = 4 * 10^(-5) * n + 4 * 10^(-4)##
##n(1 – 4 * 10^(-5)) = 4 * 10^(-4)##
This will be equivalent to
##n = (4 * 10^(-4))/(1 – 4 * 10^(-5)) ~~ color(green)(|bar(ul(color(white)(a/a)4 * 10^(-4)moles N_2color(white)(a/a)|)))##