Dear Student,
The unknown amine reacts with two equivalents of methyl iodide, therefore, the amine is a secondary amine.
A quartenary salt will be formed which on reaction with silver oxide and water gives trimethylamine and ethylene.
Therefore, the reaction taking place would be