beginning in town a , biker bob rides his bike 30 miles west , 6 miles north , 15 miles east , and then 18 miles north , to town b . how far apart are town a and town b ? ( ignore the curvature of the earth . )
"using pythagoras we have one side i , e total distance traveled in north direction = 18 + 6 = 24 m other being the base ie distance traveled west - distance traveled eat = 30 - 15 = 15 m now this third side or the distance between town a and town b = 24 ^ 2 + 15 ^ 2 = sq root 801 = 28.3 m answer : d"
sqrt(add(power(add(6, 18), const_2), power(15, const_2)))