The answer is w*v*1/2*6. All you did is rearrange the numbers. (moved the 6 to the other side, which does not affect anything)
If half of Karen's collection (4) is 1/3 of Mary's, and half of Karen's collection is 2, then 2 x 3 is how many Mary has, right? Once you know how many books Mary has, you can add how many Karen has to get your answer.