If a is directly proportional to b, we have the relationship to be:
[tex]\begin{gathered} a\propto b \\ \therefore \\ a=kb \\ where \\ b=constant \end{gathered}[/tex]When a = 25, b = 35. Therefore, we can calculate the value of k as follows:
[tex]\begin{gathered} 25=35k \\ k=\frac{25}{35} \\ k=\frac{5}{7} \end{gathered}[/tex]Therefore, the relationship is given to be:
[tex]a=\frac{5}{7}b[/tex]When a = 40, we can calculate the value of b to be:
[tex]\begin{gathered} 40=\frac{5}{7}b \\ 40\times7=5b \\ 5b=280 \\ b=\frac{280}{5} \\ b=56 \end{gathered}[/tex]The value of b is 56.