If a carpenter wants to make sure that the corner of a room is square and measures 9 At and 40 ft along the walls, how long should he make the diagonal?