application of pythagoras theorem in daily life