a) 40.27 approximately 40 ft
b) 40.94 approximately 41 ft
1) Let's sketch that to better grasp it
a. Let's use a trigonometric ratio for that rise of the roof since there's an angle of elevation. We'll use a tangent
b). Since we want to know how can we have an 8" inch overhang, let's firstly convert that to feet:
1 ft ----------12 "
y ---------- 8"
y=8/12
y=2/3 ft = 8"
So let's find out the length of this rafter, assuming this rafter will be placed like this