**Disclaimer** Hi there! I assumed the purple triangle to be the one on the right. The following answer will be according to this understanding. If I am wrong, please let me know and I will modify my answer.
Answer: 
Step-by-step explanation:
<u>Given information</u>
Rectangle A:
- Base (b) = 3 mm
- Height (h) = 9 mm
Rectangle B:
- Base (b) = 4 mm
- Height (h) = ?
Both rectangles have the same perimeter
<u>Given formula</u>
1) P = 2 (b + h)
- P = Perimeter
- b = base
- h = height
2) A = b × h
<h2>Find the height of rectangle B</h2>
<u>Substitute values into 1) formula to find the perimeter of rectangle A</u>
P = 2 (b + h)
P = 2 (3 + 9)
<u>Simplify by addition</u>
P = 2 × 12
<u>Simplify by multiplication</u>
P = 24 mm
<u>Substitute values into 1) formula to find the perimeter of rectangle B</u>
P = 2 (b + h)
24 = 2 (4 + h)
<u>Divide 2 on both sides</u>
24 / 2 = 2 (4 + h) / 2
12 = 4 + h
<u>Subtract 4 on both sides</u>
12 - 4 = 4 + h - 4
h = 8 mm
<h2>Find the area of rectangle B (Purple)</h2>
<u>Substitute values into 2) formula</u>
A = b × h
A = 4 × 8
<u>Simplify by multiplication</u>

Hope this helps!! :)
Please let me know if you have any questions