The mass of a planet that has a moon whose time period and orbital radius are T and R respectively can be written as
4π2R3G−1T−2
8π2R3G−1T−2
12π2R3G−1T−2
16π2R3G−1T−2
mω2R=GMmR2⇒2πT2R=GMR2⇒M=4π2R3GT2