Andrew has nine fewer coins than Casey. Bob has three more than twice as many coins as Andrew. Altogether, they have 536 coins. How many coins does Bob have?