Answer is 16:40
Add up the parts of the sweets so 2+5=7.
Then with the total amount (56)/7=8.
8x2= 16
8x5=40
Let
and
. By the product rule,

By the power rule, we have
and
, but
are functions of
, so we also need to apply the chain rule:


and we have


So we end up with

Replace
to get everything in terms of
:

We can simplify this by factoring:


Answer: 
Step-by-step explanation:

x + y = 53
x -y = 9 Adding both equations
2x = 62
x = 31 y = 22
Y = kx where k is a constant
27 = k*9
k = 27/9 = 3
required variation is y = 3x