So the question is to solve the integral equation to find out $y(x)$. $$y(x)+\int_{0}^{x}(x-s)y(s)ds=\dfrac{x^3}{6}$$
So I find out the Resolvent kernel for $(x-s)$ and got $\sin{(x-s)}$, so I conclude that the solution is $$y(x)=\dfrac{1}{6}\int_{0}^{x}s^3\sin{(x-s)}ds$$
But the answer says $$y(x)=\int_{0}^{x}s\sin{(x-s)}ds$$
What did I miss?
In the same idea as Jack D'Aurizio, consider $$A=\int_0^x (x-s) y(s) \, ds$$ from which (using the fundamental theorem of calculus) $$A'=\int_0^x y(s) \, ds$$ $$A''=y(x)$$ So, differentiating twice the original equation $$y''+y=x$$ from which $$y=x+c_1 \cos (x)+c_2 \sin (x)$$
I am sure that you can take from here.