If 2 : 5 is in proportion to x : 40, find the value of x.
If x + 5 is the mean proportional between x + 2 and x + 9; find the value of x.