A man on the deck of a ship is 12m above water level. he observes that the angle of elevation, of the top of a cliff is 45o and the angle of depression of its base is 30o. Calculate the distance of the cliff from the ship and the height of the cliff.