Two aldopentoses A and B give the same osazone derivation. A is oxidised to an optically active aldaric acid by dilute nitric acid. Ruff degradation of B gave a tetrose which was similarly oxidised to an optically active aldaric acid. Assign the structure of A and B from the following list: