imagine you are the captian of a ship. the ship is 40m long and 8m wide, it has 3 decks, each of which contains 6 cabins with 3 bunks each, except for the top deck, which sports only the captains cabin which is a single. the ship is fully staffed which means all bunks are occupied. the average age of the crew is (x+828) /((d-1)*c*b+1)
where
d is the number of decks
c is the number of cabins/deck
b is the number of bunks/cabin
and x is the age of the captain
how old is the captain?