Final answer:
To calculate the perimeter of A'leila's rectangle-shaped pen with sides a and b, two different expressions can be used: P = 2a + 2b, or P = a + a + b + b.
Step-by-step explanation:
A'leila is building a rectangle-shaped pen for her pet donkey with sides measuring b yards and a yards. To calculate the perimeter of a rectangle, you need to add up the lengths of all four sides. Since opposite sides of a rectangle are equal in length, two sides will each measure a yards and the other two will each measure b yards.
The first expression for the perimeter is P = 2a + 2b, which comes from the formula for the perimeter of a rectangle: P = 2(length + width). In this case, a represents the length and b represents the width.
The second expression for the perimeter could be written as P = a + a + b + b, which literally adds the length of each side individually.