Bill and Joe have 60 dollars between them. Bill has half as much as Joe.
so Bill = B and Joe = J
20 (B) + 40 (J) = 60
Bill has half the amount of Joe, and so 40/2 = 20
subtract 60 from 20 (the answer for Bill) and you get 40, (the answer for Joe)
hope this helps