Write the greatest common factor in each of the following terms.
 
1. \(−18a^2,108a\)
 
2. \(3x^2y,18xy^2,−6xy\)