Since you haven't provided the coordinates of A and B, I cannot give an exact answer. However, I will help you with the concept.
Rotation 90° about the origin will result in the following:
(x,y) ..........> (-y,x)
Therefore, you have to multiply the y value by -1 and then flip the x and y.
Examples:
(2,9) ..........> Rotation 90° about the origin .........> (-9,2)
(-3,4) .........> Rotation 90° about the origin .........> (-4,-3)
(-1,0) ..........> Rotation 90° about the origin .........> (0,-1)
(8,-6) ..........> Rotation 90° about the origin .........> (6,8)
Hope this helps :)