Question 474858
Let x = cost of bail.

Then {{{x/5  -x/7 = 40}}}

==> {{{(2x)/35 = 40}}}

==> x = 700