SEQUOIA MORTGAGE TRUST 2012-6 Mortgage Pass-Through Certificates, Series 2012-6 UNDERWRITING AGREEMENT