pattern Sort sticks Long sticks

number (n) (S) (L)

1 4 2
2 7 4
3 10 6

find formula

S: 3n+1

L: 2n