This is our 法律常识 quiz.  I am answering based on the law of the 90's of China
The first man's asset is (1/2 of house), when he dies
  "A" should own: (1/2 of house) + 
                   1/2 * (1/2 of the house owned by the first man)
                   =3/4 of the house
   x should own 1/2 * (1/2 of the house owned by the first man)
                   = 1/4 of the house
Now after A dies, her asset = 3/4 of the house is subject to inheritance.
First, you need to find out something about her second hu*****and
 (1)  Is there any pre-marital agreement between the second hu*****and and A?
 (2)  How long does the marriage last?
 (3)  Who dies first, the woman A and the second hu*****and?
Based on these, we can further divided A's asset.