1. Pete and Marie had 360 marbles. Pete had 40 fewer marbles than Marie. Pete gave his brother 3/8 of his marbles. How many marbles did Pete have left?

2. Four children shared some sweets among themselves. Adam took 1/8 of the total number of sweets while Barry took 1/4 of them. Kaden took 1/4 of the remaining sweets and Shaun took the rest. If Barry took 20 more sweets than Adam, how many sweets did Shaun take?

p + m = 360

m = p + 40
so
p + (p+40) = 360
2 p + 40 = 360
2 p = 320
p = 160
----------------------------
n sweets
A = n/8
B = n/4
remaining = n - n/4 - n/8 = 8n / 8 - 2n / 8 - 1n / 8 = 5 n/8
K = 1/4 * 5n / 8 = 5n / 32
remaining = 5n / 8 - 5n / 32 = 20n/32 - 5n /32 = 15 n/32 = S
B = A + 20
n/4 = n/8 + 20
n/8 = 20
n = 160
so
S = 15 n/32 = S = 15 * 160 / 32 = 75