Well, it tells you that your length is 'x'. Therefore, your area must be 'x' to the power of 2 ( as x is multiplied by itself).
So, if you substitute it, the you get p=R(x)2/x
Cancel your x's to get p=Rx
Rearrange and you get x=p/R, which is 5x10-2/5 = 0.01m
Hope this helps
P.s, if you substitute it into the equation you'll see that the answer for resistivity is 0.05, which is 5x10-2