The dehydration reaction is: CoSO4 • 6 H2O → CuSO4 + 6 H2O
We see that 1 mole of the hydrate yield 1 mole of the anhydrous compound. So we can use this stoichiometry as follows to solve for the mass the the anhydrous salt.
(154.9 g CuSO4 / 1 mol CuSO4) (1 mol CuSO4 / 1 mol CuSO4 • 6 H2O) (1 mol CuSO4 • 6 H2O ) / 262.9 g CuSO4 • 6 H2O) 58.4 g CuSO4 • 6 H2O = 34.4 g CuSO4