If a is directly proportional to b, we have the relationship to be:
When a = 25, b = 35. Therefore, we can calculate the value of k as follows:
Therefore, the relationship is given to be:
When a = 40, we can calculate the value of b to be:
The value of b is 56.