Draw a line 5cm long divide it in the ratio 7:3 measure the longer part

Use a proportion, cross multiply, and solve for x.

7/10 = x/5
10x = 35
x = 3.5