ANSWER
The length of the diagonal is 5 ft
EXPLANATION
The diagram of the rug with the diagonal is:
The diagonal and the sides form a right triangle, so we can use the Pythagorean theorem to find x, the length of the diagonal:
Harry gave away 3/6, or half of the brownies
1/6 plus 2/6 equals 3/6