Please reason step by step, and put your final answer within \boxed{}.
A polygon has twice as many diagonals as sides and has 5 sides. What is the formula for finding the number of diagonals of a polygon with n sides?
user