Basic Trigonometry problem

It’s been a while since I program, now i am having problem with a very basic trig question…

i am trying to rotate a point A around another point B
and i forgot how to do that, any help?