We have a triangle and a rectangle, whose perimeters are in function of variables "e" and "f".
We can calculate the perimeter of the triangle as the sum of the 3 sides:
The perimeter of the rectangle is two times the sum of height and base:
We can calculate the difference between the perimeter of the rectangle and the triangle as:
Answer: The difference between the perimeter of the rectangle and the triangle is (3.9f-3e).