Explanation:
Find attached files
N is the greatest power so the 1st term always has the greatest power so n=4
By finding the 4th root of the 1st and the last term we can know easily a & b
Choosing negative sign between the 2 terms x and 7 because of the negatives found in the question since it would be positive if all terms of the expansion are positive