Part i)
The perimeter is the sum of the measures of all the sides of a geometric figure.
Then, we can write the following equation:
Now, we can solve the above equation for AB:
Therefore, the expression, in terms of x, for the length of AB is:
Part ii)