Arbon monoxide is allowed to expand isothermally

Carbon monoxide is allowed to expand isothermally and reversibly from 10 ${{m}^{3}}$ to 20 ${{m}^{3}}$ at 300 K and work obtained is 4.754 kJ. Calculate the number of moles of carbon monoxide.

W = - 2.303 nRT log V2/V1
-4754 = -2.303 x n x 8.314 x 300 x log 20/10
On solving, n = 2.75 mol