1) Let M = the number of brownies that Molly started with and J = the number Jason started with. We have 2 unknowns (M and J) so we need 2 equations relating the unknowns to solve for them.
After Molly sold 5/7 of her brownies (leaving her with 1 - 5/7 = 2/7 left), she had 2/3 as many brownies as Jason
(2/7)M = (2/3)J
Jason then sold 40 brownies and had a quarter as many as Molly.
J - 40 = (1/4)(2/7)M [Remember, Molly only has 2/7 of her brownies left]
Let's use the first equation to substitute (2/3)J in place of (2/7)M in the second equation and solve for J:
J - 40 = (1/4)(2/7)M [Second equation]
J - 40 = (1/4)(2/3)J [Substituted (2/3)J in place of (2/7)M]
J - 40 = (1/6)J
(5/6)J = 40
J = 48
Solve for M:
(2/7)M = (2/3)J
M = (7/3)J
M = (7/3)(48) = 112
2) To solve the second problem, we need to see a diagram of the figures.