Andrew has 8 cassettes. Mary has x cassettes and Jim has twice as many as Andrew. Together they have four times as Mary has. Form an equation and find how many cassettes Mary has.