This is a Physical Chemistry Question and comes from the Atkins Physical Chemistry book.
Suppose that $2.0~\mathrm{mol}$ $\ce{H2}$ at $2.0~\mathrm{atm}$ and $25~^\circ\mathrm{C}$ and $4.0~\mathrm{mol}$ $\ce{N2}$ at $3.0~\mathrm{atm}$ and $25~^\circ\mathrm{C}$ are mixed at constant volume. Calculate $\Delta_\text{mix}G$. What would be the value of $\Delta_\text{mix}G$ had the pressures been identical initially?
The answers are given but I don't understand how to get to $-9.7~\mathrm{kJ}$ for the first part of the question (when initial pressures are different. The gases are initially at different pressures but does that make a difference. Can I still use Raoult's Law?