You have a photograph that measures $w$ by $2w$, thus the area of the photograph is $2w^2$. The frame is 4cm wide which adds 4 cm on the left, top, bottom, and right. So the total frame measures $w+8$ by $2w+8$, with an area of $(w+8)(2w+8)$. We know the following equality:
$$(w+8)(2w+8)=3(2w^2)$$ $$2w^2+24w+64=6w^2$$ $$4w^2-24w-64=0$$ $$w^2-6w-16=0$$ $$(w-8)(w+2)=0$$
And the only positive solution is $w=8$ so the answer is c.
The answer is very similar to Martin's answer, however, he forgets to include the 4cm on both sides of the frame:
_________
| _____ |
| | | |
| |_____| |
|____w____|
4cm 4cm