MR-808 / 7. problem

What number can stand in the place of X in the five-digit number  2582X , if the number is divisible by 3?
Explain the answer!

A number is divisible by 3 if the sum of its digits is divisible by 3.

2+5+8+2+0=17

2+5+8+2+1=18

2+5+8+2+2=19

2+5+8+2+3=20

2+5+8+2+4=21

2+5+8+2+5=22

2+5+8+2+6=23

2+5+8+2+7=24

2+5+8+2+8=25

2+5+8+2+9=25

1; 4; 7