Two ways to do this:
Either divide the 12.5 by 5 to get the equivalent value of 2.5. If you do this you must also divide the 9 by 5 which will give you £1.83
From this you can easily compare that the farm shop is cheaper by 3p
[More confusing method]
Multiply 2.5kg by 5 to get the equivalent value of 12.5. If you do this you must also multiply the £1.83 by 5 to get £9.15
From this you can easily compare to see that the farm shop is still cheaper. But by this time it is 15p cheaper, this is where it could get confusing but all you really may have to do (depending on exam board) is just divide the 15 by 5<(the number you multiplied by) to easily get the 3p that you had initially.