Answer:
g=56
Explanation:
In similar shapes, corresponding sides are always in the same ratio. 
For example, 
if the sides in triangle 1 were a and b, and triangle 2 had side lengths c and d, c and a had the same ratios, and b and d had the same ratios
and triangle 1 was similar to triangle 2, the ratio between the sides of the triangles would be
a/c, which is also equal to b/d
What that means is that in this situation, 8/5=g/35. 
8/5=g/35
Cross multiply. 
(8)*(35)=g*(5) 
280=5g
g=56