The perimeter of the rectangle is 40 centimeters. Find the value of x.
There is a picture of a rectangle and it has an x on the left side and a 3x on the bottom.

a. 4
b. 5
c. 8
d. 10