In each of the following case give the name or structure of the compound which fits withe information given. Explain your reasons and write each of the reaction involved

1. R is a liquid which react vigorously with concentrate aqueous ammonia to form a solid which is readily dehydrated by warming with phosphorus(v) oxide.
2. A is a liquid which dissolves in hot aqueous sodium hydroxide to form a solution which on cooling and acidifying precipitate a white solid. B solution of this solid evolve carbon(iv)oxide with aqueous sodium carbonate

My presumption is that this is an course in organic chemistry.