If float A is less than 0, add 180 to float B.

I have no idea how to go about this…
any help would be nice.