#21
To find the area of rectangle, you multiple length by width, so that would be

Since we are talking about area \ length, x need to be positive so we don't need to worry about absolute value now.
#22
The area of triangle is

, so that would be

Hope this helps.