From a ship mast head 145 meters high, the angle of depression of a boat is observed to be 40 degrees. Find the distance of the boat from the ship.