(b) $f = \mu mg\cos\theta$
or $f = 0.30 \times 10 \times 10\cos{45{^\circ}}$
or $f = \frac{30}{\sqrt{2}}N$
$W = f \times s$
$= \frac{30}{\sqrt{2}} \times 5 = \frac{150}{\sqrt{2}} \times \frac{\sqrt{2}}{\sqrt{2}} = 75\sqrt{2}\ J$
This is negative work because $f$ and $s$ are oppositely directed