It is case sensitive Angle 1 should correspond to side 1 and so on. If angle 2 is given but not side 2, side 2 will be calculated and vice versa.
Yes I'm trying to cheat out of my homework I'll probably make a cosine law as well