Ans ASAP!! But one request can u give IN pic WITH steps?..... Plzlzlzlzlz?? 1rst one will be the BRAINLIEST.. But I want complete ans!

Answer:
The parts are 24 and 16
Step-by-step explanation:
Let's call the two parts x and y. We can write the following system:
x + y = 40 -- Equation 1
1/4x = 3/8y -- Equation 2
2x = 3y -- Equation 3 (Multiply Equation 2 by 8 to get rid of denominators)
2x + 2y = 80 -- Equation 4 (Multiply Equation 1 by 2)
3y + 2y = 80 -- (Substitute 2x = 3y into Equation 4)
5y = 80 -- (3y + 2y = 5y)
y = 16 -- (Divide by 5)
x + 16 = 40 -- (Substitute y = 16 into Equation 1)
x = 24 -- (Subtract 16)