In a gable (rake) wall the length of the studs will increase by a certain amount based on the spacing of the studs and the slope of the wall.
(5 ÷ 12) * 24 = 0.41666666667 * 24 = 10The stud length increases by 10 inches.
(2 ÷ 12) * 16 = 0.1666666667 * 16 = 2.666666666666666667Converting the decimal to a fraction by multiplying it by 16 and thus making 16 the denominator
0.666666666666666667 * 16 = 10.667 rounded to 11 0.666666666666666667 = 11/16The stud length increases by 2 11/16 inches