Sun stone Pokemon Emerald?

After beating team magma in the space center in mossdeep city talk to the guys on the first floor one of them gives you a sun stone.