Task: Question Answering
Input (English): Problem: the number of diagonals of a polygon of n sides is given by the formula q = n ( n - 3 ) / 2 . if a polygon has twice as many diagonals as sides , how many sides does it have ?
Output (English): 5