This is that most curious phenonmenon of English language - the DOUBLE POSSESSIVE.
In a normal, that is, single possessive, the possessive case stands for something like "the _____ of _____". For example, "a ship's hull" is "the hull of a ship".
However, possessive case can often be ambiguous....