A bakery baked buns and cakes in the morning in the ratio 4:1

After selling 50 buns and 10 cakes in the afternoon, the ratio of the number of buns to the number of cakes left became 3:1
a) Find the number of bums that the bakery baked in the morning

b) Find the number of cakes left

Please help, thanks

1 answer

original buns ---- 4x
original cakes --- x

after sale:
buns ---- 4x-50
cakes ---- x-10

(4x-50)/(x-10) = 3/1
4x - 50 = 3x - 30

take over