We can solve the problem by using Netwon's third law:

where:
T is the orbital period of the planet
R is the average radius of the orbit (so, the average distance of the planet from the star)

M is the mass of the star.
First, we need to convert the period and the radius into SI units:


And then, re-arranging the formula and substituting the numbers we find
