E= A number which is multiple of 3 or multiple of 7
Let A= Set of numbers divisible by 3
⇒A={3,6,9,⋯,1998}
∴n(A)=666
B= Set of numbers divisible by 7
⇒B={7,14,21,⋯,1995}
∴n(B)=285
A∩B={21,42,63,⋯,1995}
∴n(A∩B)=95
Now,
n(E)=n(A)+n(B)−n(A∩B)
⇒n(E)=666+285−95
⇒n(E)=856
∴ Required probability
p=8562000
∴500p=8564=214