They are enharmonically equivalent, meaning they represent the same pitch, even though they are spelled differently.