Solving a problem using the cosine law and breaking it into its x and y components. Comparison of two methods.