out of 1to 30, 10 no.s r of the form---3m
10 r of ------------3m+1
10 r of ------------3m+2
now, x^2-y^2 to be divisible by 3 then,
x--->3m => y---->3m
x----->3m+1 => y->3m+2
so P=10*10+2(10+10)/30*30==1/3
NOTE:NUMERATOR 2 IS MULTIPLIED BCOZ X---->3M+1
OR X----->3M+2 => Y WILL TAKE THE OTHER VALUE