how do you know whether to use law of sine or law of cosine?
If you remember SSS, SAS, ASA, AAS, SSA (not legal in geometry, but legal in trig) from geometry:
if you have SSS or SAS, use Law of Cosines, otherwise use Law of Cosines.