The bottom 2 i’m pretty sure, sorrry if it’s wrong
Let
x-------> Leila 's profit
y------> Jo's profit
we know that
----------> equation 
For 
<u>Find the value of x</u>
Substitute the value of y in the equation 



therefore
<u>the answer is</u>
Leila make
in profit
( (r+2) * (2r-9)-(r^2+17r+30) )/(r+2)
none of the parenthetical operations or power operations can be simplified further, so multiplication and division first, left to right:
(2r(r+2) -9(r+2) - r^2 + 17r +30)/(r+2)
(2r^2 + 2r -9r+18 -r^2 +17r +30 )/(r+2)
(r^2 +10r +48)/(r+2)