GAUSS7 2020 Problem 9

In the diagram, the perimeter of the triangle is equal to the perimeter of the rectangle. What is the value of x?

Image

Answer Choices
A. 8
B. 10
C. 11
D. 14
E. 15