2. A square had a side length of 5x units. A triangle has side lengths of 5x, (4x+14), and (5x+4) units, For what value of x, will the square and triangle have the same perimeter?
A 2
B 4
C 5
D 3​