Andrew has six fewer coins than Casey. Bob has two more than twice as many coins as Andrew. Altogether, they have 504 coins. How many coins does Bob have?