Precise Masses in the WASP-47 System