beginning in town a , biker bob rides his bike 20 miles west , 6 miles north , 10 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 = 20 - 10 = 10 m now this third side or the distance between town a and town b = 24 ^ 2 + 10 ^ 2 = sq root 676 = 26 m answer : c
sqrt(add(power(add(6, 18), const_2), power(10, const_2)))