To find the distance from the house at A to the house at B a surveyor measures the angle ACB which is found to be 50° and then walks off the distance each house is 70 feet and 100 feet respectively how far apart are the houses?

law of cosines

c^2 = a^2 + b^2 - 2 a b cos C