The correct statement about substance A and substance B, considering the separation process described, is:
Substance A is salt and substance B is also salt.
This option makes sense because when mixing water with salt, the salt dissolves (substance A can be considered as the dissolved salt), and the separation by filtration could be referring to another solid substance mixed with salt. The remaining liquid containing dissolved salt can then be heated to evaporate the water, leaving salt behind (substance B).
The other options either do not fit the description of the separation process (like alcohol and salt or rice and sugar) or involve chemical reactions that are not mentioned in the context of this separation (such as sodium and chloride).