The powers yield cycles of digits in the units (ones) position. All powers 5 end in 5. Odd powers of 4 end in 4. And the cyclic pattern for 13 is (3 9 7 1), so 25/4 has a remainder of 1 so the last digit is 3.
Add these together: 3+4+5=12 so the last digit is 2.