The lengths of the sides of a right angled triangle are (3x + 1)cm, (3x - 1)cm and xcm. Find x
A
2
B
6
C
18
D
12
E
5