Compute all parts of given problem:
Problem: You are the science officer on a visit to a distant solar system. Prior to landing on a planet you measure its diameter to be 1.8 × 107 m and its rotation period to be 22.3 hours. You have previously determined that the planet orbits 2.2 × 1011 m from its star with a period of 402 earth days. Once on the surface you find that the free-fall acceleration is 12.2m/s2.
Part A: What is the mass of the Planet?
Part B: What is the mass of the star?
I need help to calculate the mass of the Planet and star.