What word came first appamaññā or Brahmaviharas?

Have someone study which was commonly used first? I think if a simple teaching like this is used like this in two ways. There is a possibility of one being before the other.