The work done by the elephant to lift one log is the force multiplied by the height at which the log has been lifted:
[tex]W=Fh=250 N \cdot 5 m=1250 J[/tex]
And so, the total work done to lift the 7 logs is 7 times the work done to lift each log:
[tex]W_t = 7 W=7 \cdot 1250 N=8750 J[/tex]