Solve triangles using the law of sines