In the equations of Law of Cosines do I multiply the two by both a AND b or just A?