We have 2.054 grams of nickel (Ni) and 2.482 grams of chlorine (Cl2). The total mass of the compound is 4.536 g (This results by the sum of the masses: 2.054 g + 2.482 g).
Let's find the composition of nickel and chlorine, using the following formula:
![\%\text{ composition of X=}\frac{mass\text{ of X}}{\text{mass of compound}}\cdot100\%.](https://img.qammunity.org/2023/formulas/chemistry/college/chwaccfwi6i9p3k00q685yd2gy9dtgm27v.png)
X would be Ni and Cl2:
![\begin{gathered} \%\text{ composition of Ni=}\frac{2.054\text{ g }}{4.536\text{ g}}\cdot100\%\approx45.28\%. \\ \%compositionofCl_2\text{=}\frac{2.482\text{g }}{4.536\text{ g}}\cdot100\%\approx54.72\%. \end{gathered}](https://img.qammunity.org/2023/formulas/chemistry/college/g30jwnby7qp6jzirk2whi6f3pneo4i9pck.png)
The answer would be 45.28 % of Ni and 54.72% of Cl.