You asked:

is alofi west of buea

Yes. Buea is east of Alofi.
Alofi
Alofi
Alofi

Buea
Buea
Buea