The bank gave a loan with a 9% simple interest rate to be paid in 3 years. If $378 was paid in interest, how much was the principal?​