Were the two pictures supposed to be different? Is there anything hidden that makes a difference?
Some words would have been helpful! What does B represent? Where did 6 and 10 come from? And so on.
But your total E+F+G+B does not come to 48, so you must be wrong.
I suspect you may be misinterpreting who is happy (to leave) and who is not. They are not all unhappy, if that's what you are implying by saying B = 0.