As per Kepler's law we know that

as we know that for earth the time period is 1 year and its distance is 1 AU
now from above formula we can say
let the time period of Neptune is T and its distance is given as R = 30.06 AU
now we will have

by rearranging the above equation we have


so it will have time period of 164.8 years