If a wire 510 mm long is cut so that one piece is twice as long as the other piece how many mm is the shorter piece

2 x + 1 x = 510

3 x = 510
x = 170 mm